feat(useContext): 删除多余重载 (#1932)

This commit is contained in:
山田 2022-06-16 19:02:51 +08:00 committed by GitHub
parent 50468e9581
commit 857af11ced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -35,7 +35,6 @@ export function createContext<T>(
}
export function useContext<T>(key: InjectionKey<T>, native?: boolean): T;
export function useContext<T>(key: InjectionKey<T>, defaultValue?: any, native?: boolean): T;
export function useContext<T>(
key: InjectionKey<T> = Symbol(),