mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
fix types
This commit is contained in:
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) {
|
||||
|
35
custom-typings.d.ts
vendored
Normal file
35
custom-typings.d.ts
vendored
Normal file
@ -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;
|
||||
}
|
3
custom-typings/classnames.d.ts
vendored
3
custom-typings/classnames.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
declare module 'classnames' {
|
||||
export default function({}): string;
|
||||
}
|
3
custom-typings/object-assign.d.ts
vendored
3
custom-typings/object-assign.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
declare module "object-assign" {
|
||||
export default function(target: any, ...sources: any[]): any;
|
||||
}
|
3
custom-typings/object.omit.d.ts
vendored
3
custom-typings/object.omit.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
declare module "object.omit" {
|
||||
export default function(target: any, ...sources: any[]): any;
|
||||
}
|
3
custom-typings/rc-animate.d.ts
vendored
3
custom-typings/rc-animate.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
declare module 'rc-animate' {
|
||||
export default function(): any;
|
||||
}
|
3
custom-typings/rc-util.d.ts
vendored
3
custom-typings/rc-util.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
declare module 'rc-util/lib/Dom/addEventListener' {
|
||||
export default function(domNode: any, event: string, handler: Function): any;
|
||||
}
|
3
custom-typings/shallowequal.d.ts
vendored
3
custom-typings/shallowequal.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
declare module 'shallowequal' {
|
||||
export default function(source: any, target: any): boolean;
|
||||
}
|
3
custom-typings/warning.d.ts
vendored
3
custom-typings/warning.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
declare module 'warning' {
|
||||
export default function(condition: boolean, message: string): void;
|
||||
}
|
Loading…
Reference in New Issue
Block a user