From 2ce591b1539e759a3407ba9f063dd7cf5c62f63d Mon Sep 17 00:00:00 2001 From: Aidos Sabit Date: Mon, 27 May 2024 21:02:14 +0500 Subject: [PATCH] fix(animated-property): updated keyframe bezier handles to number types --- .changeset/nine-pots-melt.md | 5 +++++ index.d.ts | 14 +++++++------- src/animated-property.d.ts | 12 ++++++------ 3 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 .changeset/nine-pots-melt.md diff --git a/.changeset/nine-pots-melt.md b/.changeset/nine-pots-melt.md new file mode 100644 index 0000000..e4a4884 --- /dev/null +++ b/.changeset/nine-pots-melt.md @@ -0,0 +1,5 @@ +--- +"@lottie-animation-community/lottie-types": patch +--- + +fix(animated-property): updated keyframe bezier handles to number types diff --git a/index.d.ts b/index.d.ts index c86acee..22a40fb 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,6 +1,6 @@ /*! * @lottie-animation-community/lottie-types - v1.0.0 - * Compiled Mon, 27 May 2024 15:50:14 UTC + * Compiled Mon, 27 May 2024 16:02:11 UTC * * Generated by an automated process. DO NOT EDIT! * @@ -876,16 +876,16 @@ declare namespace Helpers { declare namespace AnimatedProperty { /** * Bezier handle for keyframe interpolation - * - * Time component:\n0 means start time of the keyframe,\n1 means time of the next keyframe. */ interface KeyframeBezierHandle { /** + * Time component:\n0 means start time of the keyframe,\n1 means time of the next keyframe. + * * @if type array * @then minItems: 1 * @default 0 */ - x: Helpers.IntegerBoolean[] | Helpers.IntegerBoolean; + x: number[] | number; /** * Value interpolation component:\n0 means start value of the keyframe,\n1 means value at the next keyframe. * @@ -893,7 +893,7 @@ declare namespace AnimatedProperty { * @then minItems: 1 * @default 0 */ - y: Helpers.IntegerBoolean[] | Helpers.IntegerBoolean; + y: number[] | number; } /** @@ -918,7 +918,7 @@ declare namespace AnimatedProperty { */ h?: Helpers.IntegerBoolean; /** - * In Tanget + * In Tangent * * Easing tangent going into the next keyframe * @@ -927,7 +927,7 @@ declare namespace AnimatedProperty { */ i?: KeyframeBezierHandle; /** - * Out Tanget + * Out Tangent * * Easing tangent leaving the current keyframe * diff --git a/src/animated-property.d.ts b/src/animated-property.d.ts index 41daa20..378dc46 100644 --- a/src/animated-property.d.ts +++ b/src/animated-property.d.ts @@ -3,16 +3,16 @@ import { Helpers } from "./helpers"; export declare namespace AnimatedProperty { /** * Bezier handle for keyframe interpolation - * - * Time component:\n0 means start time of the keyframe,\n1 means time of the next keyframe. */ interface KeyframeBezierHandle { /** + * Time component:\n0 means start time of the keyframe,\n1 means time of the next keyframe. + * * @if type array * @then minItems: 1 * @default 0 */ - x: Helpers.IntegerBoolean[] | Helpers.IntegerBoolean; + x: number[] | number; /** * Value interpolation component:\n0 means start value of the keyframe,\n1 means value at the next keyframe. * @@ -20,7 +20,7 @@ export declare namespace AnimatedProperty { * @then minItems: 1 * @default 0 */ - y: Helpers.IntegerBoolean[] | Helpers.IntegerBoolean; + y: number[] | number; } /** @@ -45,7 +45,7 @@ export declare namespace AnimatedProperty { */ h?: Helpers.IntegerBoolean; /** - * In Tanget + * In Tangent * * Easing tangent going into the next keyframe * @@ -54,7 +54,7 @@ export declare namespace AnimatedProperty { */ i?: KeyframeBezierHandle; /** - * Out Tanget + * Out Tangent * * Easing tangent leaving the current keyframe *