Skip to content

Commit 5bec358

Browse files
committed
add isolatedModules and split type re-exports in barrel
1 parent 2d16277 commit 5bec358

File tree

2 files changed

+77
-38
lines changed

2 files changed

+77
-38
lines changed

src/index.ts

Lines changed: 76 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,81 @@
1-
export { default as Avatar, AvatarProps } from './avatar'
2-
export { default as AvatarGroup, AvatarGroupProps } from './avatar-group'
3-
export { default as Badge, BadgeProps } from './badge'
4-
export { default as Blockquote, BlockquoteProps } from './blockquote'
5-
export { default as Button, ButtonProps } from './button'
6-
export { default as Callout, CalloutProps } from './callout'
7-
export { default as Caption, CaptionProps } from './caption'
8-
export { default as Colorbar, ColorbarProps } from './colorbar'
1+
export { default as Avatar } from './avatar'
2+
export type { AvatarProps } from './avatar'
3+
export { default as AvatarGroup } from './avatar-group'
4+
export type { AvatarGroupProps } from './avatar-group'
5+
export { default as Badge } from './badge'
6+
export type { BadgeProps } from './badge'
7+
export { default as Blockquote } from './blockquote'
8+
export type { BlockquoteProps } from './blockquote'
9+
export { default as Button } from './button'
10+
export type { ButtonProps } from './button'
11+
export { default as Callout } from './callout'
12+
export type { CalloutProps } from './callout'
13+
export { default as Caption } from './caption'
14+
export type { CaptionProps } from './caption'
15+
export { default as Colorbar } from './colorbar'
16+
export type { ColorbarProps } from './colorbar'
917
export * as Colors from './colors'
10-
export { default as Column, ColumnProps } from './column'
18+
export { default as Column } from './column'
19+
export type { ColumnProps } from './column'
1120
export { default as Custom404 } from './custom-404'
12-
export { default as Dimmer, DimmerProps } from './dimmer'
13-
export { default as Expander, ExpanderProps } from './expander'
14-
export { default as FadeIn, FadeInProps } from './fade-in'
15-
export { default as Figure, FigureProps } from './figure'
16-
export { default as FigureCaption, FigureCaptionProps } from './figure-caption'
17-
export { default as Filter, FilterProps } from './filter'
21+
export { default as Dimmer } from './dimmer'
22+
export type { DimmerProps } from './dimmer'
23+
export { default as Expander } from './expander'
24+
export type { ExpanderProps } from './expander'
25+
export { default as FadeIn } from './fade-in'
26+
export type { FadeInProps } from './fade-in'
27+
export { default as Figure } from './figure'
28+
export type { FigureProps } from './figure'
29+
export { default as FigureCaption } from './figure-caption'
30+
export type { FigureCaptionProps } from './figure-caption'
31+
export { default as Filter } from './filter'
32+
export type { FilterProps } from './filter'
1833
export { default as Footer } from './footer'
19-
export { default as Group, GroupProps } from './group'
20-
export { default as Guide, GuideProps } from './guide'
21-
export { default as Header, HeaderProps } from './header'
22-
export { default as Heading, HeadingProps } from './heading'
23-
export { default as Input, InputProps } from './input'
24-
export { default as Layout, LayoutProps } from './layout'
25-
export { default as Link, LinkProps } from './link'
26-
export { default as LinkGroup, LinkGroupProps } from './link-group'
27-
export { default as Logo, LogoProps } from './logo'
28-
export { default as Meta, MetaProps } from './meta'
29-
export { default as Monogram, MonogramProps } from './monogram'
30-
export { default as Menu, MenuProps } from './menu'
31-
export { default as Metadata, MetadataProps } from './metadata'
32-
export { default as Row, RowProps } from './row'
34+
export { default as Group } from './group'
35+
export type { GroupProps } from './group'
36+
export { default as Guide } from './guide'
37+
export type { GuideProps } from './guide'
38+
export { default as Header } from './header'
39+
export type { HeaderProps } from './header'
40+
export { default as Heading } from './heading'
41+
export type { HeadingProps } from './heading'
42+
export { default as Input } from './input'
43+
export type { InputProps } from './input'
44+
export { default as Layout } from './layout'
45+
export type { LayoutProps } from './layout'
46+
export { default as Link } from './link'
47+
export type { LinkProps } from './link'
48+
export { default as LinkGroup } from './link-group'
49+
export type { LinkGroupProps } from './link-group'
50+
export { default as Logo } from './logo'
51+
export type { LogoProps } from './logo'
52+
export { default as Menu } from './menu'
53+
export type { MenuProps } from './menu'
54+
export { default as Meta } from './meta'
55+
export type { MetaProps } from './meta'
56+
export { default as Metadata } from './metadata'
57+
export type { MetadataProps } from './metadata'
58+
export { default as Monogram } from './monogram'
59+
export type { MonogramProps } from './monogram'
60+
export { default as Row } from './row'
61+
export type { RowProps } from './row'
3362
export { default as Scrollbar } from './scrollbar'
34-
export { default as Select, SelectProps } from './select'
35-
export { default as Settings, SettingsProps } from './settings'
36-
export { default as Slider, SliderProps } from './slider'
37-
export { default as Table, TableProps } from './table'
38-
export { default as TableCaption, TableCaptionProps } from './table-caption'
39-
export { default as Tag, TagProps } from './tag'
40-
export { default as Toggle, ToggleProps } from './toggle'
41-
export { default as Tray, TrayProps } from './tray'
63+
export { default as Select } from './select'
64+
export type { SelectProps } from './select'
65+
export { default as Settings } from './settings'
66+
export type { SettingsProps } from './settings'
67+
export { default as Sidenote } from './sidenote'
68+
export type { SidenoteProps } from './sidenote'
69+
export { default as Slider } from './slider'
70+
export type { SliderProps } from './slider'
71+
export { default as Table } from './table'
72+
export type { TableProps } from './table'
73+
export { default as TableCaption } from './table-caption'
74+
export type { TableCaptionProps } from './table-caption'
75+
export { default as Tag } from './tag'
76+
export type { TagProps } from './tag'
77+
export { default as Toggle } from './toggle'
78+
export type { ToggleProps } from './toggle'
79+
export { default as Tray } from './tray'
80+
export type { TrayProps } from './tray'
4281
export { formatDate, getScrollbarWidth, useScrollbarClass } from './utils'
43-
export { default as Sidenote, SidenoteProps } from './sidenote'

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"target": "ES2017",
44
"lib": ["dom", "dom.iterable", "esnext"],
55
"strict": true,
6+
"isolatedModules": true,
67
"esModuleInterop": true,
78
"module": "esnext",
89
"moduleResolution": "node",

0 commit comments

Comments
 (0)