fix(react): add correct type for CreateAnimation (#25931)

This commit is contained in:
Liam DeBeasi
2022-09-13 12:57:28 -05:00
committed by GitHub
parent 7c34a4cc8b
commit 89d3e3c819

View File

@ -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;