forked from import-js/eslint-plugin-import
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix]
ExportMap
: Add default export when esModuleInterop is true an…
…d anything is exported Fixes import-js#2183. See import-js#1689.
- Loading branch information
1 parent
202e5e0
commit ce540b6
Showing
5 changed files
with
55 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
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