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';