Skip to content

Default name formatter is too brittle #53

Description

@runeh

The default name formatter just uppercases the first letter. This doesn't work for types that use a non-alpha prefix. For example, given a value named _links, we now generate this code:

const _links = rt.Record({next: rt.String, prev: rt.String});

type _links = rt.Static<typeof _links>;

We probably don't want the names to be identical, even though it's technically allowed I think.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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