From ecc18ef3a64034dc1f7bec93e2b3f38dac29c4a3 Mon Sep 17 00:00:00 2001 From: Randy Date: Wed, 2 Aug 2017 15:08:55 +0800 Subject: [PATCH] remove rc-util declaration (#7043) --- components/card/index.tsx | 4 ++-- typings/custom-typings.d.ts | 11 ----------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/components/card/index.tsx b/components/card/index.tsx index 7e42129e89..cdb4a789da 100644 --- a/components/card/index.tsx +++ b/components/card/index.tsx @@ -1,6 +1,6 @@ import React, { Component, Children } from 'react'; import classNames from 'classnames'; -import addEventListener, { RcUtilEventHandler } from 'rc-util/lib/Dom/addEventListener'; +import addEventListener from 'rc-util/lib/Dom/addEventListener'; import Grid from './Grid'; import { throttleByAnimationFrameDecorator } from '../_util/throttleByAnimationFrame'; @@ -21,7 +21,7 @@ export interface CardProps { export default class Card extends Component { static Grid: typeof Grid = Grid; container: HTMLDivElement; - resizeEvent: RcUtilEventHandler; + resizeEvent: any; updateWiderPaddingCalled: boolean; state = { widerPadding: false, diff --git a/typings/custom-typings.d.ts b/typings/custom-typings.d.ts index 6f34857f6e..f22b962967 100644 --- a/typings/custom-typings.d.ts +++ b/typings/custom-typings.d.ts @@ -12,17 +12,6 @@ declare module "omit.js"; declare module 'rc-animate'; -declare module 'rc-util/lib/Dom/addEventListener' { - export interface RcUtilEventHandler { - remove(): void; - } - export interface RcUtilAddEventListenerFunc { - (target: EventTarget, eventType: string, callback: EventListener): RcUtilEventHandler; - } - const addEventListener: RcUtilAddEventListenerFunc; - export default addEventListener; -} - declare module 'rc-util*'; declare module 'shallowequal';