瀏覽代碼

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

山田 2 年之前
父節點
當前提交
857af11ced
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      src/hooks/core/useContext.ts

+ 0 - 1
src/hooks/core/useContext.ts

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