Skip to content

Commit

Permalink
Add css variables type to TypedKeyframe
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Jan 8, 2023
1 parent 52eb63e commit 3724fbf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/waapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ export type AnimatableCSSProperties = Omit<
/**
* Strictly typed [Keyframe](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API/Keyframe_Formats)
*/
export type TypedKeyframe = Pick<Keyframe, "composite" | "easing" | "offset"> &
AnimatableCSSProperties;
export type TypedKeyframe = Pick<
Keyframe,
"composite" | "easing" | "offset"
> & { [key: `--${string}`]: string | number } & AnimatableCSSProperties;

export type TypedEasing = NonNullable<
Exclude<CSSProperties["animationTimingFunction"], CSSProperties["all"]>
Expand Down

0 comments on commit 3724fbf

Please sign in to comment.