Skip to content

Commit

Permalink
Merge pull request #45 from gadingnst/deps/upgrade
Browse files Browse the repository at this point in the history
[v2.0.1] fix: import types
  • Loading branch information
Gading Nasution authored Dec 2, 2022
2 parents 91ae4c5 + 76748bb commit 175890d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -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<T> = (currentData: T) => T|Promise<T>;
Expand Down

0 comments on commit 175890d

Please sign in to comment.