Skip to content

Commit 2d4607c

Browse files
committed
d.ts use extends HTMLAttributes
1 parent 5e5c9d8 commit 2d4607c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type IEaseType = 'linear' |
2222
export type IQueueTypeOrArrayOrFunc = IQueueType | [IQueueType, IQueueType] | ((e: { key: string, index: number }) => IQueueType | [IQueueType, IQueueType]);
2323
export type IEaseTypeOrArrayOrFunc = IEaseType | [IEaseType, IEaseType] | ((e: { key: string, index: number }) => IEaseType | [IEaseType, IEaseType]);
2424
export type IAnimConfigOrArrayOrFunc = {} | [{}] | ((e: { key: string, index: number }) => {} | [{}, {}]);
25-
export interface IProps {
25+
export interface IProps<T> extends React.HTMLAttributes<T> {
2626
type?: IQueueTypeOrArrayOrFunc;
2727
animConfig?: IAnimConfigOrArrayOrFunc;
2828
delay?: INumberOrArrayOrFunc;
@@ -39,4 +39,4 @@ export interface IProps {
3939
onEnd?: (e: { key: string, type: string, target: HTMLElement }) => void;
4040
}
4141

42-
export default class RcQueueAnim extends React.Component<IProps> { }
42+
export default class RcQueueAnim<T> extends React.Component<IProps<T>> { }

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-queue-anim",
3-
"version": "1.6.10",
3+
"version": "1.6.11",
44
"description": "Queue animation component for react",
55
"keywords": [
66
"react",

0 commit comments

Comments
 (0)