UNPKG

@player-ui/asset-transform-plugin

Version:

18 lines 851 B
import type { Player, PlayerPlugin, TransformRegistry, TransformFunction, TransformFunctions } from "@player-ui/player"; import { Registry } from "@player-ui/partial-match-registry"; export * from "./utils"; export * from "./propertiesToSkip"; export type TransformType = TransformFunction<any> | TransformFunctions; export type TransformRegistryEntries = Array<[any, TransformType]>; export type AssetTransformInit = Registry<TransformType> | TransformRegistryEntries; /** * A plugin to register custom transforms on certain asset types * This allows users to embed stateful data into transforms. */ export declare class AssetTransformPlugin implements PlayerPlugin { name: string; readonly registry: TransformRegistry; constructor(transforms: AssetTransformInit); apply(player: Player): void; } //# sourceMappingURL=index.d.ts.map