UNPKG
json-schema-to-joi
Version:
latest (5.1.0)
5.1.0
3.0.0
Converts JSON schema to Joi typescript code
json-schema-to-joi
/
dist
/
extendedJoi
/
index.d.ts
10 lines
(9 loc)
•
263 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
*
as
Joi
from
'joi'
;
import
{
AllOfSchema
}
from
'./allOf'
;
import
{
OneOfSchema
}
from
'./oneOf'
;
interface
ExtendedJoi
extends
Joi
.
Root
{
allOf
():
AllOfSchema
;
oneOf
():
OneOfSchema
; }
declare
const
extendedJoi
:
ExtendedJoi
;
export
= extendedJoi;