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
/
boolean.ts
17 lines
(14 loc)
•
266 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: boolean * Used for: boolean */
const
type
= {
name
:
"boolean"
,
description
:
"A boolean (true/false) value"
,
validator
:
function
(
param
) {
return
Joi
.
boolean
() },
example
:
true
}
export
default
type
;