computed-async-mobx
Version:
Define a computed by returning a Promise
12 lines (11 loc) • 493 B
TypeScript
/// <reference types="tape" />
import test from "blue-tape";
export declare function testCombinations(description: string, script: (delayed: boolean, assert: test.Test) => Promise<void>): void;
export declare function testStrictness(description: string, script: (assert: test.Test) => Promise<void>): void;
export declare function waitForLength(ar: any[], length: number): Promise<void>;
export declare class Obs<T> {
v: T;
constructor(init: T);
get(): T;
set(val: T): void;
}