UNPKG

@launchmenu/core

Version:

An environment for visual keyboard controlled applets

10 lines 695 B
import { ICreateMapperInput } from "./_types/ICreateMapperInput"; import { TCreateMapperOutput } from "./_types/TCreateMapperOutput"; /** * Creates a mapper using a default map function * @param map The standard function that maps an input to an output * @param mapperInput The data to be mapped, functions will remain functions, true will be replaced by the default mapping, strings wil use the default map function but get aliased * @returns A valid mapper definition */ export declare function createMapper<C, I, O, M extends ICreateMapperInput<C, I>>(map: (value: I, context: C) => O, mapperInput: M): TCreateMapperOutput<M, C, I, O>; //# sourceMappingURL=createMapper.d.ts.map