From d3ef835232a2a647bfffab3f9020861bcf6fa3ae Mon Sep 17 00:00:00 2001 From: duxiaodong Date: Wed, 3 Apr 2019 15:42:56 +0800 Subject: [PATCH 1/2] fix: no code generate --- package.json | 1 + tsconfig.json | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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/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" } } From f1d44b5856124a76d85896a6babebf7f2cda003b Mon Sep 17 00:00:00 2001 From: duxiaodong Date: Wed, 3 Apr 2019 16:05:07 +0800 Subject: [PATCH 2/2] fix: lint --- src/PropsType.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;