UNPKG
steady-api
Version:
latest (2.1.0)
2.1.0
2.0.0
1.6.4
1.6.3
1.6.2
1.6.0
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
Configurable REST API built with Express and TypeScript
steady-api
/
src
/
types
/
email.ts
17 lines
(14 loc)
•
274 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
;