UNPKG

@minima-global/mds

Version:

Official MDS Typescript Library for Minima. Used for creating minidapps that interact with the Minima Blockchain.

18 lines 717 B
/** * Helper function to handle command arguments and return the command string, callback, and payload. * @param command - The command to be executed. * @param args - The arguments to be passed to the command. * @returns An object containing the command string and callback. */ export declare function commandHandler(command: string, args: any[]): { commandString: string; callback: any; }; export declare function createCommandFunction(command: string): (...args: any[]) => Promise<unknown>; export type Prettify<T> = { [P in keyof T]: T[P]; } & {}; export type PrettifyNested<T> = { [K in keyof T]: T[K] extends object ? Prettify<T[K]> : T[K]; } & unknown; //# sourceMappingURL=helpers.d.ts.map