diff --git a/package.json b/package.json index 96fa830..c4800b1 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "license": "MIT", "main": "./lib/index", "module": "./es/index", + "types": "./lib/index.d.ts", "config": { "port": 8899 }, diff --git a/src/PropsType.ts b/src/PropsType.ts index 5f82a05..8d3d3dd 100644 --- a/src/PropsType.ts +++ b/src/PropsType.ts @@ -1,6 +1,6 @@ import * as React from 'react'; -export interface Indicator { +export interface IIndicator { activate?: React.ReactNode; deactivate?: React.ReactNode; release?: React.ReactNode; @@ -13,7 +13,7 @@ export interface IPropsType { direction?: 'down' | 'up'; refreshing?: boolean; distanceToRefresh?: number; - indicator?: Indicator; + indicator?: IIndicator; prefixCls?: string; className?: string; damping?: number; diff --git a/tsconfig.json b/tsconfig.json index a392b99..1ef10d0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,6 @@ "target": "es6", "noImplicitAny": false, "noUnusedLocals": true, - "noEmit": true, "baseUrl": "src" } }