Skip to content

Commit

Permalink
fix: style type
Browse files Browse the repository at this point in the history
  • Loading branch information
imfenghuang committed Dec 7, 2024
1 parent 6bf9eff commit e8199eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import * as presets from '../presets'
import type { MotionInstance } from '../types/instance'
import type {
MotionVariants,
SVGPathProperties,
StyleProperties,
Variant,
} from '../types/variants'
Expand Down Expand Up @@ -228,7 +229,7 @@ export function setupMotionComponent(
}

// Set node style and register to `instances` on mount
function setNodeInstance(node: VNode, index: number, style: StyleProperties) {
function setNodeInstance(node: VNode, index: number, style: StyleProperties | SVGPathProperties) {
node.props ??= {}
node.props.style ??= {}

Expand Down

0 comments on commit e8199eb

Please sign in to comment.