UNPKG

rvx

Version:

A signal based rendering library

8 lines (7 loc) 297 B
import { AsyncContext } from "../async/async-context.js"; export interface AsyncTestContext { asyncCtx: AsyncContext; use: <T>(fn: () => T) => T; } export type AsyncTestFn<T> = (ctx: AsyncTestContext) => Promise<T>; export declare function runAsyncTest<T>(fn: AsyncTestFn<T>): Promise<T>;