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

71 lines 1.99 kB
/** * @since 2.0.0 */ import * as Chunk from "./Chunk.js"; import * as Either from "./Either.js"; import * as Equal from "./Equal.js"; import type * as Fiber from "./Fiber.js"; import * as HashSet from "./HashSet.js"; import type * as MutableRef from "./MutableRef.js"; import type * as SortedSet from "./SortedSet.js"; import type * as Types from "./Types.js"; /** * @since 2.0.0 */ export declare const TestAnnotationTypeId: unique symbol; /** * @since 2.0.0 */ export type TestAnnotationTypeId = typeof TestAnnotationTypeId; /** * @since 2.0.0 */ export interface TestAnnotation<in out A> extends Equal.Equal { readonly [TestAnnotationTypeId]: { readonly _A: Types.Invariant<A>; }; readonly identifier: string; readonly initial: A; combine(a: A, b: A): A; } /** * @since 2.0.0 */ export declare const isTestAnnotation: (u: unknown) => u is TestAnnotation<unknown>; /** * @since 2.0.0 */ export declare const make: <A>(identifier: string, initial: A, combine: (a: A, b: A) => A) => TestAnnotation<A>; /** * @since 2.0.0 */ export declare const compose: <A>(left: Either.Either<Chunk.Chunk<A>, number>, right: Either.Either<Chunk.Chunk<A>, number>) => Either.Either<Chunk.Chunk<A>, number>; /** * @since 2.0.0 */ export declare const fibers: TestAnnotation<Either.Either<Chunk.Chunk<MutableRef.MutableRef<SortedSet.SortedSet<Fiber.RuntimeFiber<unknown, unknown>>>>, number>>; /** * An annotation which counts ignored tests. * * @since 2.0.0 */ export declare const ignored: TestAnnotation<number>; /** * An annotation which counts repeated tests. * * @since 2.0.0 */ export declare const repeated: TestAnnotation<number>; /** * An annotation which counts retried tests. * * @since 2.0.0 */ export declare const retried: TestAnnotation<number>; /** * An annotation which tags tests with strings. * * @since 2.0.0 */ export declare const tagged: TestAnnotation<HashSet.HashSet<string>>; //# sourceMappingURL=TestAnnotation.d.ts.map