Sfoglia il codice sorgente

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

山田 2 anni fa
parent
commit
857af11ced
1 ha cambiato i file con 0 aggiunte e 1 eliminazioni
  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(),