Unverified 提交 857af11c 作者: 山田 提交者: GitHub

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

上级 50468e95
...@@ -35,7 +35,6 @@ export function createContext<T>( ...@@ -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>, native?: boolean): T;
export function useContext<T>(key: InjectionKey<T>, defaultValue?: any, native?: boolean): T;
export function useContext<T>( export function useContext<T>(
key: InjectionKey<T> = Symbol(), key: InjectionKey<T> = Symbol(),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论