clumsy-graphics
Version:
a tool for rapidly developing animations where frames are described using svg elements à la react 🙃
7 lines (6 loc) • 331 B
TypeScript
import { Type as Codec } from 'io-ts';
export interface DecodeDataApi<TargetData, InputData, TargetCodec = Codec<InputData, TargetData>> {
targetCodec: TargetCodec;
inputData: unknown;
}
export declare function decodeData<TargetData, InputData = TargetData>(api: DecodeDataApi<InputData, TargetData>): Promise<TargetData>;