Fun picker improvements

This commit is contained in:
Jamie Kyle 2025-03-26 12:35:32 -07:00 committed by GitHub
commit b0653d06fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
142 changed files with 3581 additions and 1280 deletions

View file

@ -10,6 +10,8 @@ export enum LoadingState {
export type Loadable<ValueT, ErrorT = unknown> =
| {
loadingState: LoadingState.Loading;
value?: never;
error?: never;
}
| { loadingState: LoadingState.Loaded; value: ValueT }
| { loadingState: LoadingState.LoadFailed; error: ErrorT };
| { loadingState: LoadingState.Loaded; value: ValueT; error?: never }
| { loadingState: LoadingState.LoadFailed; value?: never; error: ErrorT };