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
36 lines • 926 B
TypeScript
/**
* @since 2.0.0
*/
import * as Context from "./Context.js";
import type * as Effect from "./Effect.js";
import type * as FiberRef from "./FiberRef.js";
/**
* @since 2.0.0
*/
export declare const TestSizedTypeId: unique symbol;
/**
* @since 2.0.0
*/
export type TestSizedTypeId = typeof TestSizedTypeId;
/**
* @since 2.0.0
*/
export interface TestSized {
readonly [TestSizedTypeId]: TestSizedTypeId;
readonly fiberRef: FiberRef.FiberRef<number>;
readonly size: Effect.Effect<number>;
withSize(size: number): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
}
/**
* @since 2.0.0
*/
export declare const TestSized: Context.Tag<TestSized, TestSized>;
/**
* @since 2.0.0
*/
export declare const make: (size: number) => TestSized;
/**
* @since 2.0.0
*/
export declare const fromFiberRef: (fiberRef: FiberRef.FiberRef<number>) => TestSized;
//# sourceMappingURL=TestSized.d.ts.map