UNPKG
@sproott/sveltekit-superforms
Version:
latest (2.27.1-next)
2.27.1-next
Making SvelteKit forms a pleasure to use!
superforms.rocks
@sproott/sveltekit-superforms
/
dist
/
adapters
/
yup-to-json-schema
/
converters
/
index.d.ts
5 lines
(4 loc)
•
237 B
TypeScript
View Raw
1
2
3
4
5
import
type
{
AnySchema
}
from
'yup'
;
import
type
{
JSON
Schema7 }
from
'json-schema'
;
import
type
{
ResolveOptions
}
from
'../types.js'
;
export
declare
function
convertSchema
(
yupSchema
:
AnySchema
,
options
?:
ResolveOptions
):
JSON
Schema7;