@neatau/dto
Preparing search index...
DTOConstructor
Type Alias DTOConstructor<T>
type
DTOConstructor
<
T
extends
ZodType
>
=
{
create
(
input
:
DTOData
<
T
>
)
:
DTOInterface
<
T
>
;
getSchema
()
:
T
;
new
(
data
:
DTOData
<
T
>
)
:
DTOInterface
<
T
>
;
}
Type Parameters
T
extends
ZodType
new
DTOConstructor
(
data
:
DTOData
<
T
>
)
:
DTOInterface
<
T
>
Parameters
data
:
DTOData
<
T
>
Returns
DTOInterface
<
T
>
Index
Methods
create
get
Schema
Methods
create
create
(
input
:
DTOData
<
T
>
)
:
DTOInterface
<
T
>
Create a new instance of this DTO.
Parameters
input
:
DTOData
<
T
>
Returns
DTOInterface
<
T
>
get
Schema
getSchema
()
:
T
Get the Zod schema associated with this DTO definition.
Returns
T
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
create
get
Schema
@neatau/dto
Loading...
Create a new instance of this DTO.