36 lines
926 B
TypeScript
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
|