UNPKG

veffect

Version:

powerful TypeScript validation library built on the robust foundation of Effect combining exceptional type safety, high performance, and developer experience. Taking inspiration from Effect's functional principles, VEffect delivers a balanced approach tha

86 lines 1.78 kB
/** * Represents a description of how to modify the path to a configuration * value. * * @since 2.0.0 * @category models */ export type PathPatch = Empty | AndThen | MapName | Nested | Unnested; /** * @since 2.0.0 * @category models */ export interface Empty { readonly _tag: "Empty"; } /** * @since 2.0.0 * @category models */ export interface AndThen { readonly _tag: "AndThen"; readonly first: PathPatch; readonly second: PathPatch; } /** * @since 2.0.0 * @category models */ export interface MapName { readonly _tag: "MapName"; f(string: string): string; } /** * @since 2.0.0 * @category models */ export interface Nested { readonly _tag: "Nested"; readonly name: string; } /** * @since 2.0.0 * @category models */ export interface Unnested { readonly _tag: "Unnested"; readonly name: string; } /** * @since 2.0.0 * @category constructors */ export declare const empty: PathPatch; /** * @since 2.0.0 * @category constructors */ export declare const andThen: { (that: PathPatch): (self: PathPatch) => PathPatch; (self: PathPatch, that: PathPatch): PathPatch; }; /** * @since 2.0.0 * @category constructors */ export declare const mapName: { (f: (string: string) => string): (self: PathPatch) => PathPatch; (self: PathPatch, f: (string: string) => string): PathPatch; }; /** * @since 2.0.0 * @category constructors */ export declare const nested: { (name: string): (self: PathPatch) => PathPatch; (self: PathPatch, name: string): PathPatch; }; /** * @since 2.0.0 * @category constructors */ export declare const unnested: { (name: string): (self: PathPatch) => PathPatch; (self: PathPatch, name: string): PathPatch; }; //# sourceMappingURL=ConfigProviderPathPatch.d.ts.map