fix types

pull/2569/head
afc163 9 years ago
parent 57f08259db
commit 4f18cf0658

@ -60,7 +60,8 @@ export default class Affix extends React.Component<AffixProps, any> {
scrollEvent: any;
resizeEvent: any;
refs: {
fixedNode: any;
[key: string]: any;
fixedNode: HTMLElement;
};
constructor(props) {

@ -0,0 +1,35 @@
declare module 'classnames' {
export default function({}): string;
}
declare module 'gregorian-calendar' {
export default function({}): string;
}
declare module "object-assign" {
export default function(target: any, ...sources: any[]): any;
}
declare module "object.omit" {
export default function(target: any, ...sources: any[]): any;
}
declare module 'rc-animate' {
export default function(): any;
}
declare module 'rc-util/lib/Dom/addEventListener' {
export default function(domNode: any, event: string, handler: Function): any;
}
declare module 'shallowequal' {
export default function(source: any, target: any): boolean;
}
declare module 'warning' {
export default function(condition: boolean, message: string): void;
}
declare module 'css-animation' {
export default function(...any): any;
}

@ -1,3 +0,0 @@
declare module 'classnames' {
export default function({}): string;
}

@ -1,3 +0,0 @@
declare module "object-assign" {
export default function(target: any, ...sources: any[]): any;
}

@ -1,3 +0,0 @@
declare module "object.omit" {
export default function(target: any, ...sources: any[]): any;
}

@ -1,3 +0,0 @@
declare module 'rc-animate' {
export default function(): any;
}

@ -1,3 +0,0 @@
declare module 'rc-util/lib/Dom/addEventListener' {
export default function(domNode: any, event: string, handler: Function): any;
}

@ -1,3 +0,0 @@
declare module 'shallowequal' {
export default function(source: any, target: any): boolean;
}

@ -1,3 +0,0 @@
declare module 'warning' {
export default function(condition: boolean, message: string): void;
}
Loading…
Cancel
Save