Skip to content

Add Types to support styles #17

@jacquesdev

Description

@jacquesdev

While we are here shall we add a flow types for types_first setting that is coming. Not sure if View has a flow type definition so try;

type ViewProps= typeof View

type ContainerProps = {
   color: string,
   ...ViewProps,
}

export const Container: ContainerProps ...

I'm not sure if would need to do ComponentType<ContainerProps>. Or could flag in that types first stylesheet ticket to update the generator then?

Originally posted by @ChristieRobson in #15 (comment)

Metadata

Metadata

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