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

This commit is contained in:
山田 2022-06-16 19:02:51 +08:00 committed by JinMao
parent 67575dd186
commit 0e18835e00

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(),