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
/
joi
/
resolveType.d.ts
5 lines
(4 loc)
•
219 B
TypeScript
View Raw
1
2
3
4
5
import
{
JSON
Schema4 }
from
'json-schema'
;
import
{
JoiSchema
}
from
'./types'
;
import
{
ResolveOptions
}
from
'./options'
;
export
declare
function
resolveType
(
schema
:
JSON
Schema4,
options
?:
ResolveOptions
):
JoiSchema
;