UNPKG

pure-parse

Version:

Strongly typed validation library that decouples type aliases from validation logic

16 lines (15 loc) 556 B
/** * Used to represent optional guards at runtime and compile-time in two different ways */ export declare const optionalSymbol: unique symbol; /** * Passed to parsers to indicate that a property is absent */ export declare const propertyAbsent: unique symbol; /** * Returned from optional parsers to indicate that a property should be omitted */ export declare const omitProperty: unique symbol; export type OptionalSymbol = typeof optionalSymbol; export type PropertyAbsent = typeof propertyAbsent; export type OmitProperty = typeof omitProperty;