@launchmenu/core
Version:
An environment for visual keyboard controlled applets
15 lines • 777 B
TypeScript
import { IPropMapper } from "./_types/IPropMapper";
import { TPropMapperOutputs } from "./_types/TPropMapperOutputs";
import { TPropMapperInputs } from "./_types/TPropMapperInputs";
/**
* Maps the given props to other props
* @param props The props to map
* @param mapper The mapper definitions for each of the properties
* @param context The context to pass to the mapper definitions
* @param output An optional output object to add the properties to
* @returns The resulting object after mapping
*/
export declare function mapProps<M extends IPropMapper<T>, T, I extends Partial<TPropMapperInputs<M>>>(props: I, mapper: M, context: T, output?: {
[key: string]: any;
}): TPropMapperOutputs<M, keyof I & keyof M>;
//# sourceMappingURL=mapProps.d.ts.map