build(deps): bump dependencies

This commit is contained in:
sct
2021-03-10 02:13:46 +00:00
parent 512809f7c0
commit 84ef40ea8e
3 changed files with 122 additions and 106 deletions

View File

@@ -5,7 +5,7 @@ import {
PermissionCheckOptions,
} from '../../server/lib/permissions';
import { UserType } from '../../server/constants/user';
import { mutateCallback } from 'swr/dist/types';
import { MutatorCallback } from 'swr/dist/types';
export { Permission, UserType };
@@ -37,7 +37,7 @@ interface UserHookResponse {
error: string;
revalidate: () => Promise<boolean>;
mutate: (
data?: User | Promise<User> | mutateCallback<User> | undefined,
data?: User | Promise<User> | MutatorCallback<User> | undefined,
shouldRevalidate?: boolean | undefined
) => Promise<User | undefined>;
hasPermission: (