UNPKG

bookish-potato-dto

Version:

## Overview A TypeScript decorators-based API for defining Data Transfer Object (DTO) classes, types, and parsers. Simplifies schema validation and type enforcement using intuitive decorators and TypeScript classes.

3 lines (2 loc) 155 B
export type EnumType<T extends EnumAllowedGenericType = EnumAllowedGenericType> = Record<string, T>; export type EnumAllowedGenericType = string | number;