Commit 857af11ced57ee8477231452a0e0c4c70074d9ea
Committed by
GitHub
1 parent
50468e95
feat(useContext): 删除多余重载 (#1932)
Showing
1 changed file
with
0 additions
and
1 deletions
src/hooks/core/useContext.ts
... | ... | @@ -35,7 +35,6 @@ export function createContext<T>( |
35 | 35 | } |
36 | 36 | |
37 | 37 | export function useContext<T>(key: InjectionKey<T>, native?: boolean): T; |
38 | -export function useContext<T>(key: InjectionKey<T>, defaultValue?: any, native?: boolean): T; | |
39 | 38 | |
40 | 39 | export function useContext<T>( |
41 | 40 | key: InjectionKey<T> = Symbol(), | ... | ... |