Skip to content

Commit e76381b

Browse files
authored
Merge pull request #47 from ztplz/master
Add type definition
2 parents 1fe9e1e + c9ba1bb commit e76381b

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

index.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import * as React from 'react';
2+
3+
export interface Props {
4+
component: string | React.ReactElement<any>,
5+
componentProps: object,
6+
animation: object,
7+
transitionName: string | object,
8+
transitionEnter: boolean,
9+
transitionAppear: boolean,
10+
exclusive: boolean,
11+
transitionLeave: boolean,
12+
onEnd: (key: string, exists: boolean) => void,
13+
onEnter: (key: string) => void,
14+
onLeave: (key: string) => void,
15+
onAppear: (key: string) => void,
16+
showProp: string,
17+
children: React.ReactChild,
18+
}
19+
20+
export default class Animate extends React.Component<Props> {};

0 commit comments

Comments
 (0)