Skip to main content

pluralName

pluralName(pluralResourceName): (constructor) => void

Class level decorator. Specifies if a resource should have a specific plural name. If we want a Child resource to have a Children plural name instead of generated one Childs, we can add the @pluralName decorator. Now plural name for Child resource will be Children.

Sets {@link ResourceMeta.pluralName}.

Parameters

pluralResourceName

string

The plural name of the resource.

Returns

(constructor): void

Parameters

[constructor](function Object() { [native code] })

Constructor<unknown>

Returns

void