Skip to content

CLI(typebox): Type Singular name #2877

Description

@fratzinger

See the two typebox schemas generated by the cli. On the left, it's a 'custom' messages service that I created with feathers g service. On the right it's the default users service that got created by feathers g app:
image

See the difference between the namings. In almost every variable name it's plural (left) vs. singular (right):

  • messagesSchema vs userSchema
  • $id: 'Messages' (plural) vs. $id: 'User' (singular)
  • export type Messages vs. export type User
  • messagesResolver...

We should make it singular by default, right? Popular solutions:

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions