We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87065fe commit 8e421b8Copy full SHA for 8e421b8
packages/react-arborist/src/types/utils.ts
@@ -7,14 +7,6 @@ export interface IdObj {
7
8
export type Identity = string | IdObj | null;
9
10
-// Forward ref can't forward generics without this little re-declare
11
-// https://fettblog.eu/typescript-react-generic-forward-refs/
12
-declare module "react" {
13
- function forwardRef<T, P = {}>(
14
- render: (props: P, ref: React.Ref<T>) => React.ReactElement | null
15
- ): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
16
-}
17
-
18
export type BoolFunc<T> = (data: T) => boolean;
19
20
export type ActionTypes<
0 commit comments