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

11 lines (9 loc) 208 B
/** @internal */ export interface Stack<out A> { readonly value: A readonly previous: Stack<A> | undefined } export const make = <A>(value: A, previous?: Stack<A>): Stack<A> => ({ value, previous })