-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trick TS instead of exporting object in a default export
- Loading branch information
1 parent
fa25ca4
commit f276793
Showing
4 changed files
with
9 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
export * as default from './' | ||
// For TypeScript compatibility we import and export it this way | ||
import * as _default from './' | ||
export { _default as default } |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import Container from './Container' | ||
import Item from './Item' | ||
|
||
export default { Container, Item } | ||
// For TypeScript compatibility we import and export it this way | ||
import * as _default from './' | ||
export { _default as default } |
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 |
---|---|---|
@@ -1,8 +1,2 @@ | ||
/** | ||
* Component Entry | ||
* | ||
*/ | ||
|
||
import Grid from './Grid' | ||
export default Grid | ||
export * from './Grid' | ||
export { default as Container } from './Container' | ||
export { default as Item } from './Item' |
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