diff --git a/src/traditional.ts b/src/traditional.ts index 0241596e..c855e588 100644 --- a/src/traditional.ts +++ b/src/traditional.ts @@ -3,6 +3,7 @@ import React from 'react' import useSyncExternalStoreExports from 'use-sync-external-store/shim/with-selector' import { createStore } from './vanilla.ts' import type { + ExtractState, Mutate, StateCreator, StoreApi, @@ -11,8 +12,6 @@ import type { const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports -type ExtractState = S extends { getState: () => infer T } ? T : never - type ReadonlyStoreApi = Pick< StoreApi, 'getState' | 'getInitialState' | 'subscribe'