Skip to content

isPlural Examples

The isPlural property controls automatic pluralization of the schema title.

Standard Usage

By default, the plugin pluralizes the schema name (e.g., "Author" becomes "Authors"). Set isPlural: false to disable this.

ts
{
  schemaType: 'author',
  isPlural: false,
}

With Singletons

Singletons have isPlural: false by default. You can manually enable it if you want the singleton's title to be pluralized.

ts
{
  schemaType: 'settings',
  singleton: true,
  isPlural: true, // Force pluralization for a singleton
}

Released under the MIT License.