Skip to content

Improve typing for component prop in components that accept it #666

@ariser

Description

@ariser

I spent... some time trying to parse it
I don't think this does what you intended to do
keyof T is properties of a string in case of T being a tagname. Or it's never if you pass typeof Component.

So copilot is wrong by saying keyof T includes all component prop keys. But it doesn't contain anything useful either.

I believe you do want to use keyof GridContainerProps<T> instead of keyof T here

Originally posted by @ariser in #663 (comment)

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