Skip to content

Commit 2c59d59

Browse files
authored
fix: ensure proper type inference of APILoadingStatus (#747)
Added `as const` to ensure that `APILoadingStatus` is the intended union type instead of `string`
1 parent 1355f3f commit 2c59d59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/api-loading-status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ export const APILoadingStatus = {
44
LOADED: 'LOADED',
55
FAILED: 'FAILED',
66
AUTH_FAILURE: 'AUTH_FAILURE'
7-
};
7+
} as const;
88
export type APILoadingStatus =
99
(typeof APILoadingStatus)[keyof typeof APILoadingStatus];

0 commit comments

Comments
 (0)