Browse Source

remove rc-util declaration (#7043)

pull/7064/head
Randy 7 years ago
committed by 偏右
parent
commit
ecc18ef3a6
  1. 4
      components/card/index.tsx
  2. 11
      typings/custom-typings.d.ts

4
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<CardProps> {
static Grid: typeof Grid = Grid;
container: HTMLDivElement;
resizeEvent: RcUtilEventHandler;
resizeEvent: any;
updateWiderPaddingCalled: boolean;
state = {
widerPadding: false,

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

Loading…
Cancel
Save