UNPKG

bookish-potato-dto

Version:

A TypeScript DTO (Data Transfer Object) parsing and validation library. Define a schema once — get runtime validation and a fully inferred TypeScript type for free.

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