Skip to content

Commit 09c7ff9

Browse files
authored
Merge pull request #119 from dvtng/fix-118
Fix SkeletonProps not being exported from main entry point
2 parents 1f0d0e8 + 6d90a90 commit 09c7ff9

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## UNRELEASED
2+
3+
### Bug Fixes
4+
5+
- Fix `SkeletonProps` not being exported from the main entry point
6+
17
## 3.0.0
28

39
### Migration Guide

src/__tests__/index.test.tsx

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from 'react'
2+
import Skeleton, { SkeletonTheme, SkeletonThemeProps, SkeletonProps } from '..'
3+
4+
it('exports Skeleton and friends', () => {
5+
expect(typeof Skeleton).toBe('function')
6+
expect(typeof SkeletonTheme).toBe('function')
7+
8+
/* eslint-disable @typescript-eslint/no-unused-vars */
9+
const skeletonProps: SkeletonProps = { count: 3, borderRadius: '1rem' }
10+
const skeletonThemeProps: SkeletonThemeProps = {
11+
children: <div />,
12+
baseColor: '#3a3a3a',
13+
highlightColor: 'white',
14+
}
15+
/* eslint-enable @typescript-eslint/no-unused-vars */
16+
})

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export * from './SkeletonStyleProps'
22
export * from './SkeletonTheme'
33
export { Skeleton as default } from './Skeleton'
4+
export type { SkeletonProps } from './Skeleton'

0 commit comments

Comments
 (0)