diff --git a/index.d.ts b/index.d.ts index a018fbc7a..bbab3719f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -84,7 +84,7 @@ export type AnimationItem = { resetSegments(forceFlag: boolean): void; hide(): void; show(): void; - resize(): void; + resize(width?: number, height?: number): void; setSpeed(speed: number): void; setDirection(direction: AnimationDirection): void; setLoop(isLooping: boolean): void;