diff --git a/src/on-load.ts b/src/on-load.ts index 9a1b2dd..85f55db 100644 --- a/src/on-load.ts +++ b/src/on-load.ts @@ -1,4 +1,4 @@ -import { GlobalState } from "./types"; +import { GlobalState } from "./shared/types"; export const globalState: GlobalState = { isLoading: false, diff --git a/src/shared/types.ts b/src/shared/types.ts new file mode 100644 index 0000000..952e745 --- /dev/null +++ b/src/shared/types.ts @@ -0,0 +1,4 @@ +export interface GlobalState { + isLoading: boolean; + data: Record; +}