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.

16 lines (15 loc) 511 B
/** * Global configuration for bookish-potato-dto. * * @example * import { bookishPotatoDto } from 'bookish-potato-dto'; * bookishPotatoDto.warnOnLegacy = true; // opt-in console.warn for legacy class-based DTOs */ export declare const bookishPotatoDto: { /** * When true, a console.warn is emitted every time parseObject is called * with a legacy class-based DTO (instead of a DtoDefinition). * Off by default to avoid noise in existing projects. */ warnOnLegacy: boolean; };