소스 검색

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