Skip to content

Commit d938731

Browse files
author
Jeremy Hamilton
committed
update index.js to be ts file
1 parent 28eb3ed commit d938731

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/index.js renamed to src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ import {
4545
import getIconType, { registerCustomIconType } from './helpers/getIconType';
4646
import normalize from './helpers/normalizeText';
4747

48+
//@ts-ignore
4849
const AirbnbRating = withTheme(BaseAirbnbRating, 'AirbnbRating');
50+
//@ts-ignore
4951
const Rating = withTheme(BaseRating, 'Rating');
5052

5153
export {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
4545
"skipLibCheck": true,
4646
},
47-
"include": ["src/**/*.tsx", "src/index.js"],
47+
"include": ["src/**/*.tsx", "src/**/*.ts", "src/index.ts"],
4848
"exclude": [
4949
".ci", "website", "node_modules", "babel.config.js", "jest.config.js", "src/index.d.ts", "__tests__"
5050
]

0 commit comments

Comments
 (0)