1 | import { IComputedValueOptions } from "mobx";
|
2 | export declare type ITransformer<A, B> = (object: A) => B;
|
3 | export declare type ITransformerCleanup<A, B> = (resultObject: B | undefined, sourceObject?: A) => void;
|
4 | export declare type ITransformerParams<A, B> = {
|
5 | onCleanup?: ITransformerCleanup<A, B>;
|
6 | debugNameGenerator?: (sourceObject?: A) => string;
|
7 | keepAlive?: boolean;
|
8 | } & Omit<IComputedValueOptions<B>, "name">;
|
9 | export declare function createTransformer<A, B>(transformer: ITransformer<A, B>, onCleanup?: ITransformerCleanup<A, B>): ITransformer<A, B>;
|
10 | export declare function createTransformer<A, B>(transformer: ITransformer<A, B>, arg2?: ITransformerParams<A, B>): ITransformer<A, B>;
|