feat(useContext): 删除多余重载 (#1932)
This commit is contained in:
parent
50468e9581
commit
857af11ced
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue