Browse Source

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

pull/1975/head
山田 4 years ago
committed by GitHub
parent
commit
857af11ced
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/hooks/core/useContext.ts

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

Loading…
Cancel
Save