Workery / helpers
Module: helpers
Table of contents
Classes
Functions
Functions
jsonCoerce
▸ jsonCoerce<Out
>(value
): Out
| string
Type parameters
Name | Type |
---|---|
Out | unknown |
Parameters
Name | Type |
---|---|
value | string |
Returns
Out
| string
Defined in
▸ jsonCoerce<Out
>(value
): Out
[] | string
[]
Type parameters
Name | Type |
---|---|
Out | unknown |
Parameters
Name | Type |
---|---|
value | string [] |
Returns
Out
[] | string
[]
Defined in
isJsonCoercible
▸ isJsonCoercible(schema
): boolean
Parameters
Name | Type |
---|---|
schema | ZodType <any , ZodTypeDef , any > |
Returns
boolean
Defined in
createResolveLater
▸ createResolveLater<T
>(): [(res
: T
) => void
, (fn
: (v
: T
) => void
) => void
]
Type parameters
Name | Type |
---|---|
T | Response |
Returns
[(res
: T
) => void
, (fn
: (v
: T
) => void
) => void
]
Defined in
baseExceptionHandler
▸ baseExceptionHandler<E
>(_
, e
): Response
Type parameters
Name |
---|
E |
Parameters
Name | Type |
---|---|
_ | ArgsOf <{}, E > |
e | any |
Returns
Response
Defined in
createObjectPartial
▸ createObjectPartial<T1
>(base
): <T2>(final
: T2
) => T1
& T2
Type parameters
Name | Type |
---|---|
T1 | extends Record <any , any > |
Parameters
Name | Type |
---|---|
base | T1 |
Returns
fn
▸ <T2
>(final
): T1
& T2
Type parameters
Name | Type |
---|---|
T2 | extends Record <any , any > |
Parameters
Name | Type |
---|---|
final | T2 |
Returns
T1
& T2