UNPKG

normul

Version:

Normul is a tiny TypeScript/JavaScript library for data normalization and transformation

9 lines (8 loc) 364 B
import type { ParseContext } from '../../types.js'; import { Schema } from '../Schema.js'; export declare class LiteralSchema<T extends string | number | boolean | null | undefined> extends Schema<T> { protected readonly literal: T; constructor(literal: T); protected _normalize(input: unknown, ctx: ParseContext): T; protected cloneArgs(): T[]; }