Namespace

api/slug

api/slug

Classes

SlugCollection

Members

api/slug.SlugCollection

# static constant exports.Slugs

Provides the singleton instance of a SlugCollection to all other entities.

View Source api/slug/SlugCollection.ts, line 169

Methods

# static exports.newSlugValidator()

Custom validator for fields that must contain a previously undefined slug name.

View Source api/slug/SlugCollection.validators.ts, line 10

Error if there are no Slugs in the SlugCollection.

Undefined if the slug value is not previously defined, otherwise errorType 'duplicateSlug'.

# static slugify(text) → {string}

Slugifies the give text.

Parameters:
Name Type Description
text

View Source api/slug/SlugCollection.ts, line 12

string