Skip to content

Commit

Permalink
fix: types improperly compiled (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
roginfarrer committed Oct 19, 2021
1 parent 94cb182 commit f7a8613
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
ReactNode,
CSSProperties,
TransitionEvent,
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
useLayoutEffect,
} from 'react'
import warning from 'tiny-warning'
import { AssignableRef } from './types'
import type { AssignableRef } from './types'

type AnyFunction = (...args: any[]) => unknown

Expand Down
14 changes: 5 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"include": ["src"],
"exclude": ["src/__tests__/**/*", "src/stories/**/*"],
"compilerOptions": {
"target": "es5",
"module": "esnext",
"lib": ["dom", "esnext"],
"target": "ESNext",
"module": "ESNext",
"lib": ["dom", "ESNext"],
"importHelpers": true,
"declaration": true,
"sourceMap": true,
"strict": true,
"noImplicitAny": true,
Expand All @@ -18,11 +19,6 @@
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"baseUrl": "./",
"paths": {
"@": ["./"],
"*": ["src/*", "node_modules/*"]
},
"jsx": "react",
"esModuleInterop": true,
"skipLibCheck": true
Expand Down

0 comments on commit f7a8613

Please sign in to comment.