Skip to content

feat: infer types for WebComponent.props properties #17

Description

@ayo-run

We know the types from the initialization of static props and use this to populate an internal typeMap that is used to restore the type of properties after a full reactivity loop--when the HTML attribute changes to trigger a render, the props are serialized and needs to be restored before assigning to the proxy props

The current problem is that we statically type WebComponent.props to {[key: string]: any} -- is there a way to infer the type from the initialization too?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions