Skip to content

Type inconsistency in layoutDependency prop #199

@matsn0w

Description

@matsn0w

See

'layoutDependency': { type: [String, Number, Object, Array] },

The docs suggest that this property could be a boolean, but that is not wat the type declaration states.

Using a boolean results in a warning in the console.

Suggestion: make layoutDependency an 'any' type to align with https://github.com/motiondivision/motion/blob/c084ec07b483c00dce197e8958f9cf30bd493268/packages/motion-dom/src/node/types.ts#L942l and clarify the docs about the expected value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions