Skip to content

Commit

Permalink
Chore: fix type on lottie props (#2593)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaiQiangReal authored Nov 28, 2024
1 parent 782c2fb commit ee43498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/semi-foundation/lottie/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface LottieAdapter<P = Record<string, any>, S = Record<string, any>>
export interface LottieBaseProps {
width?: string;
height?: string;
params: ArgsType<typeof lottie.loadAnimation>[0];
params: Partial<ArgsType<typeof lottie.loadAnimation>[0]>;
getAnimationInstance?: (instance: AnimationItem|null) => void;
getLottie?: (lottiePKG: typeof lottie) => void

Expand Down Expand Up @@ -57,4 +57,4 @@ class LottieFoundation <P = Record<string, any>, S = Record<string, any>> extend

}

export default LottieFoundation;
export default LottieFoundation;

0 comments on commit ee43498

Please sign in to comment.