Commit 857af11ced57ee8477231452a0e0c4c70074d9ea

Authored by 山田
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,7 +35,6 @@ export function createContext<T>(
35 } 35 }
36 36
37 export function useContext<T>(key: InjectionKey<T>, native?: boolean): T; 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 export function useContext<T>( 39 export function useContext<T>(
41 key: InjectionKey<T> = Symbol(), 40 key: InjectionKey<T> = Symbol(),