-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Showing
5 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
addons/docs/src/frameworks/react/__testfixtures__/9591-ts-import-types/Bar.tsx
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,3 @@ | ||
export type BarProps = { | ||
foo?: string; | ||
}; |
23 changes: 23 additions & 0 deletions
23
addons/docs/src/frameworks/react/__testfixtures__/9591-ts-import-types/docgen.snapshot
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,23 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`react component properties 9591-ts-import-types 1`] = ` | ||
"import React from 'react'; | ||
|
||
const Other = props => React.createElement(\\"span\\", props, \\"Other\\"); | ||
|
||
export const component = Other; | ||
Other.__docgenInfo = { | ||
\\"description\\": \\"\\", | ||
\\"methods\\": [], | ||
\\"displayName\\": \\"Other\\", | ||
\\"props\\": { | ||
\\"other\\": { | ||
\\"required\\": false, | ||
\\"tsType\\": { | ||
\\"name\\": \\"number\\" | ||
}, | ||
\\"description\\": \\"\\" | ||
} | ||
} | ||
};" | ||
`; |
10 changes: 10 additions & 0 deletions
10
addons/docs/src/frameworks/react/__testfixtures__/9591-ts-import-types/input.tsx
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,10 @@ | ||
import React from 'react'; | ||
import { BarProps } from './Bar'; | ||
|
||
type OtherProps = BarProps & { | ||
other?: number; | ||
}; | ||
|
||
const Other = (props: OtherProps) => <span {...props}>Other</span>; | ||
|
||
export const component = Other; |
21 changes: 21 additions & 0 deletions
21
addons/docs/src/frameworks/react/__testfixtures__/9591-ts-import-types/properties.snapshot
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,21 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`react component properties 9591-ts-import-types 1`] = ` | ||
Object { | ||
"rows": Array [ | ||
Object { | ||
"defaultValue": Object { | ||
"detail": undefined, | ||
"summary": "0", | ||
}, | ||
"description": "", | ||
"name": "other", | ||
"required": false, | ||
"type": Object { | ||
"detail": undefined, | ||
"summary": "number", | ||
}, | ||
}, | ||
], | ||
} | ||
`; |
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