Skip to content

Commit 7dcd152

Browse files
authored
Refactor: move d.ts file (#1749)
1 parent a5c4916 commit 7dcd152

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"outDir": "./lib",
1414
"forceConsistentCasingInFileNames": true
1515
},
16-
"include": ["src/**/*"],
16+
"include": ["src/**/*", "types"],
1717
"exclude": ["node_modules", "dist"]
1818
}

src/global.d.ts renamed to types/index.d.ts

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-unused-vars */
12
declare module 'react-dom' {
23
export function unstable_batchedUpdates<A, B>(
34
callback: (a: A, b: B) => any,
@@ -23,3 +24,9 @@ declare module 'react-native' {
2324
): void
2425
export function unstable_batchedUpdates(callback: () => any): void
2526
}
27+
28+
declare module 'react-is' {
29+
import * as React from 'react'
30+
export function isContextConsumer(value: any): value is React.ReactElement
31+
export function isValidElementType(value: any): value is React.ElementType
32+
}

0 commit comments

Comments
 (0)