diff --git a/src/index.ts b/src/index.ts index f6250a4..d7de67a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ -import type { MutatorOptions, SWRConfiguration } from 'swr/dist/types'; +import type { MutatorOptions, SWRConfiguration, Key } from 'swr/dist/types'; import { useCallback } from 'react'; -import useSWR, { type Key, useSWRConfig } from 'swr'; +import useSWR, { useSWRConfig } from 'swr'; export type StateKey = Key; export type StateMutatorCallback = (currentData: T) => T|Promise;