From 76748bb8b8474b45fc1f1f46f5f1c42230fc8083 Mon Sep 17 00:00:00 2001 From: Gading Nasution Date: Fri, 2 Dec 2022 08:53:34 +0700 Subject: [PATCH] fix: import types --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;