UNPKG

steady-api

Version:

Configurable REST API built with Express and TypeScript

17 lines (14 loc) 274 B
import * as Joi from 'joi'; /** * Paramter type: email * Used for: emails */ const type = { name: "email", description: "Valid email addresses", validator: function(param) { return Joi.string().email(); }, example: "me@example.com" } export default type;