hipthrusts - v1.2.0
Preparing search index...
zod
htZodFactory
Function htZodFactory
htZodFactory
()
:
{
PojoToValidated
:
<
TPojoKey
extends
string
,
TSchema
extends
ZodType
<
any
,
any
,
any
>
,
TContextIn
extends
{
[
key
in
string
]
:
any
}
,
>
(
pojoKey
:
TPojoKey
,
schema
:
TSchema
,
newValidatedKey
:
string
,
)
=>
{
loadResources
:
(
htCtx
:
TContextIn
,
)
=>
{
[
key
:
string
]:
output
<
TSchema
>
}
;
}
;
RedactResponseWithZod
:
<
TSafeResponse
extends
any
,
TSchema
extends
ZodType
<
any
,
any
,
any
>
,
>
(
schema
:
TSchema
,
)
=>
{
redactResponse
:
(
unsafe
:
any
,
context
?:
any
)
=>
TSafeResponse
}
;
SanitizeInputsSlicesWithZod
:
<
TShapes
extends
Record
<
string
,
ZodType
<
any
,
any
,
any
>
>
,
>
(
shapes
:
TShapes
,
)
=>
{
sanitizeInputs
:
(
htCtx
:
TContextIn
)
=>
SafeSlices
&
HasUnsafeSlices
;
}
;
SanitizeInputsWithZod
:
<
TSafe
extends
any
,
TSchema
extends
ZodType
<
any
,
any
,
any
>
,
TUnsafe
extends
object
,
>
(
schema
:
TSchema
,
)
=>
{
sanitizeInputs
:
(
htCtx
:
TUnsafe
)
=>
TSafe
}
;
stripIdTransform
:
(
obj
:
any
)
=>
any
;
}
Returns
{
PojoToValidated
:
<
TPojoKey
extends
string
,
TSchema
extends
ZodType
<
any
,
any
,
any
>
,
TContextIn
extends
{
[
key
in
string
]
:
any
}
,
>
(
pojoKey
:
TPojoKey
,
schema
:
TSchema
,
newValidatedKey
:
string
,
)
=>
{
loadResources
:
(
htCtx
:
TContextIn
,
)
=>
{
[
key
:
string
]:
output
<
TSchema
>
}
;
}
;
RedactResponseWithZod
:
<
TSafeResponse
extends
any
,
TSchema
extends
ZodType
<
any
,
any
,
any
>
,
>
(
schema
:
TSchema
,
)
=>
{
redactResponse
:
(
unsafe
:
any
,
context
?:
any
)
=>
TSafeResponse
}
;
SanitizeInputsSlicesWithZod
:
<
TShapes
extends
Record
<
string
,
ZodType
<
any
,
any
,
any
>
>
,
>
(
shapes
:
TShapes
,
)
=>
{
sanitizeInputs
:
(
htCtx
:
TContextIn
)
=>
SafeSlices
&
HasUnsafeSlices
;
}
;
SanitizeInputsWithZod
:
<
TSafe
extends
any
,
TSchema
extends
ZodType
<
any
,
any
,
any
>
,
TUnsafe
extends
object
,
>
(
schema
:
TSchema
,
)
=>
{
sanitizeInputs
:
(
htCtx
:
TUnsafe
)
=>
TSafe
}
;
stripIdTransform
:
(
obj
:
any
)
=>
any
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
hipthrusts - v1.2.0
Loading...