Skip to content

Commit 3724fbf

Browse files
committed
Add css variables type to TypedKeyframe
1 parent 52eb63e commit 3724fbf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/core/waapi.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ export type AnimatableCSSProperties = Omit<
1414
/**
1515
* Strictly typed [Keyframe](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API/Keyframe_Formats)
1616
*/
17-
export type TypedKeyframe = Pick<Keyframe, "composite" | "easing" | "offset"> &
18-
AnimatableCSSProperties;
17+
export type TypedKeyframe = Pick<
18+
Keyframe,
19+
"composite" | "easing" | "offset"
20+
> & { [key: `--${string}`]: string | number } & AnimatableCSSProperties;
1921

2022
export type TypedEasing = NonNullable<
2123
Exclude<CSSProperties["animationTimingFunction"], CSSProperties["all"]>

0 commit comments

Comments
 (0)