Skip to content

Commit f9d1d81

Browse files
authored
Merge pull request #855 from ReactTooltip/export-component-types
fix: export component types and add src into npmignore again
2 parents c18abc5 + cf4b960 commit f9d1d81

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ build/
1111
test/
1212
bin/
1313
CHANGELOG.md
14+
src/
1415
docs/
1516
public/
1617
coverage/

src/index.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
11
import './tokens.css'
2+
import type {
3+
ChildrenType,
4+
DataAttribute,
5+
EventsType,
6+
PlacesType,
7+
PositionStrategy,
8+
VariantType,
9+
WrapperType,
10+
} from './components/Tooltip/TooltipTypes'
11+
import type { ITooltipController } from './components/TooltipController/TooltipControllerTypes'
12+
import type { ITooltipWrapper } from './components/TooltipProvider/TooltipProviderTypes'
213

314
export { TooltipController as Tooltip } from './components/TooltipController'
415
export { TooltipProvider, TooltipWrapper } from './components/TooltipProvider'
16+
export type {
17+
ChildrenType,
18+
DataAttribute,
19+
EventsType,
20+
PlacesType,
21+
PositionStrategy,
22+
VariantType,
23+
WrapperType,
24+
ITooltipController as ITooltip,
25+
ITooltipWrapper,
26+
}

0 commit comments

Comments
 (0)