-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
202e5e0
commit 16d70c4
Showing
4 changed files
with
51 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
tests/files/typescript-export-react-test-renderer/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// case from @types/react-test-renderer | ||
|
||
export {}; | ||
|
||
export interface ReactTestRendererJSON { | ||
type: string; | ||
props: { [propName: string]: any }; | ||
children: null | ReactTestRendererNode[]; | ||
} | ||
export type ReactTestRendererNode = ReactTestRendererJSON | string; | ||
export interface ReactTestRendererTree extends ReactTestRendererJSON { | ||
nodeType: 'component' | 'host'; | ||
instance: any; | ||
rendered: null | ReactTestRendererTree | ReactTestRendererTree[]; | ||
} | ||
|
||
export function create(nextElement: any, options?: any): any; | ||
|
||
export function act(callback: () => Promise<any>): Promise<undefined>; |
5 changes: 5 additions & 0 deletions
5
tests/files/typescript-export-react-test-renderer/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"compilerOptions": { | ||
"esModuleInterop": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters