UNPKG

@practica/create-node-app

Version:

Create Node.js app that is packed with best practices AND strive for simplicity

12 lines (9 loc) 305 B
import { Static, Type } from '@sinclair/typebox'; export const orderSchema = Type.Object({ deliveryAddress: Type.String(), paymentTermsInDays: Type.Number(), countryId: Type.Number(), productId: Type.Integer(), userId: Type.Integer(), }); export type addOrderDTO = Static<typeof orderSchema>;