Skip to content

Commit

Permalink
Ignore remaining type error
Browse files Browse the repository at this point in the history
This change was added in microsoft/TypeScript#53133
  • Loading branch information
swissspidy committed Jun 15, 2023
1 parent 5adffe1 commit 64f6a0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/animation/src/components/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ function Provider({
// Note that we could use `getComputedTiming` above instead, but the typings
// in @types/web-animations-js aren't completely correct for that return.
const actualDuration = typeof duration === 'string' ? 0 : duration;
const animationEndTime = delay + actualDuration;
// TODO: Address case where duration can be of type CSSNumericValue.

const animationEndTime = delay + (actualDuration as number);
animation.currentTime =
time === 'end'
? animationEndTime
Expand Down

0 comments on commit 64f6a0c

Please sign in to comment.