@mimik/user-filters
v1.3.7
Published
filter definition for user
Downloads
132
Readme
user-filters
Example
const { userDefinitions } = require('@mimik/user-filters');
user-filters~userDefinitions
Configuration for the user filter
Kind: inner constant of user-filters
user-filters~validateDetail(definitions, detail) ⇒ string
Validate the user detail.
Kind: inner method of user-filters
Returns: string - The selected detail.
Category: sync
Throws:
- Will trow an invalid details:
detail
error.
| Param | Type | Description | | --- | --- | --- | | definitions | object | User Definitions from the service config. | | detail | string | Detail selected for the user. |