UNPKG

@player-ui/asset-transform-plugin

Version:

15 lines 819 B
import type { BeforeTransformFunction, TransformFunction, TransformFunctions } from "@player-ui/player"; /** * Helper function to make it easier to create transforms that need to be ran in * the `beforeResolve` hook. Just like `compose`, functions are evaluated from * right-to-left. */ export declare function composeBefore(...args: BeforeTransformFunction<any>[]): TransformFunctions; /** * Performs right-to-left function evaluation of each transform function. Unlike * other compose functions, this does not require unary arguments for all but the * last function. The value returned from each function will be used as the value * for the next function. */ export declare function compose(...args: Array<TransformFunction<any> | TransformFunctions>): TransformFunctions; //# sourceMappingURL=utils.d.ts.map