UNPKG

schemantic

Version:

A fully typed, extensible TypeScript type generator for FastAPI OpenAPI schemas

28 lines 1.11 kB
/** * Advanced Branded Types Plugin * * Implements sophisticated branded types for compile-time safety guarantees, * phantom type parameters for state management, and discriminated unions with * runtime type guards for enhanced type system capabilities. * * Key Features: * - Branded types for compile-time safety (prevents primitive obsession) * - Phantom type parameters for authentication state management * - Discriminated unions with exhaustive type checking * - Runtime type guards with brand preservation * - Type-level computations for advanced validations * - Nominal typing simulation in TypeScript's structural system * * Architecture: * - Zero-runtime-cost type safety through brands * - Compile-time state tracking via phantom types * - Type-level programming for validation pipelines * - Integration with existing validation systems */ import { SchemanticPlugin } from "../types/core"; /** * Advanced Branded Types Plugin Implementation */ export declare const brandedTypesPlugin: SchemanticPlugin; export default brandedTypesPlugin; //# sourceMappingURL=branded-types.d.ts.map