mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
fix(react): add correct type for CreateAnimation (#25931)
This commit is contained in:
@ -7,7 +7,7 @@ import {
|
||||
AnimationLifecycle,
|
||||
createAnimation,
|
||||
} from '@ionic/core/components';
|
||||
import React from 'react';
|
||||
import React, { PropsWithChildren } from 'react';
|
||||
|
||||
interface PartialPropertyValue {
|
||||
property: string;
|
||||
@ -59,7 +59,7 @@ export interface CreateAnimationProps {
|
||||
progressEnd?: { playTo: 0 | 1 | undefined; step: number; dur?: number };
|
||||
}
|
||||
|
||||
export class CreateAnimation extends React.PureComponent<CreateAnimationProps> {
|
||||
export class CreateAnimation extends React.PureComponent<PropsWithChildren<CreateAnimationProps>> {
|
||||
nodes: Map<number, HTMLElement> = new Map();
|
||||
animation: Animation;
|
||||
|
||||
|
Reference in New Issue
Block a user