Skip to content

Commit

Permalink
fix: remove the container property from the LottieOptions type #47
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamote committed Jan 18, 2022
1 parent 29a4117 commit e4f228a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ import {
AnimationEventName,
AnimationItem,
AnimationSegment,
CanvasRendererConfig,
HTMLRendererConfig,
SVGRendererConfig,
} from "lottie-web";

export type LottieRefCurrentProps = {
Expand All @@ -35,7 +32,7 @@ export type LottieRefCurrentProps = {

export type LottieRef = MutableRefObject<LottieRefCurrentProps | null>;

export type LottieOptions = AnimationConfigWithData & {
export type LottieOptions = Omit<AnimationConfigWithData, "container"> & {
lottieRef?: LottieRef;
onComplete?: AnimationEventHandler | null;
onLoopComplete?: AnimationEventHandler | null;
Expand Down

0 comments on commit e4f228a

Please sign in to comment.