Skip to content

Adding basic string types - NonEmptyString, CharacterΒ #228

@yuti01

Description

@yuti01

I have found myself declaring simple string types a lot and thought it would be nice to have them here.
I suggest adding the following types:

  • NonEmptyString to indicate some string cannot be empty
  • Character type to indicate a string has length of exactly 1.

What do you think? Is it too pedantic? Would you use these types?

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