update notice

This commit is contained in:
ari committed 2022-09-06 20:38:07 -04:00
1 parent df95265af0
commit 2dca59fa3f
9 files changed
+174 -46

No files matched your search

+4 -3
View File
@@ -21,10 +21,11 @@ export type APIResponse<D> =
};
export type Waitable<D> =
| { ready: undefined }
| ({ ready: true } & APIResponse<D>)
| ({ ready: true } & D)
| {
ready: false;
};
export type ApiWaitable<D> = Waitable<APIResponse<D>>;
export interface ListData<D> {
params: ListParams;
totalItems: number;
@@ -32,8 +33,8 @@ export interface ListData<D> {
}
export interface ApiState {
automations: Waitable<ListData<AutomationData>>;
userProfile: Waitable<UserProfile>;
automations: ApiWaitable<ListData<AutomationData>>;
userProfile: ApiWaitable<UserProfile>;
}
export type UserProfile = {