Skip to content

Text component typescript error - Type '"700"' is not assignable to type 'number | ... #25

@k-sav

Description

@k-sav

When exported to codesandbox, there is a TS error for the Text component's styles prop (under fontWeight).

Type '"700"' is not assignable to type 'number | "inherit" | "initial" | "-moz-initial" | "revert" | "unset" | "normal" | "bold" | "bolder" | "lighter" | undefined'.ts(2769)

To Reproduce
Steps to reproduce the behavior:

  1. Go to Welcome to Modulz sandbox
  2. Click on the blue Welcome to Modulz artboard & click on the Codesandbox export icon in the top right
  3. Scroll to Text compopnent and see error at style prop for fontWeight

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