Explorar o código

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

山田 %!s(int64=2) %!d(string=hai) anos
pai
achega
857af11ced
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  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(),