UNPKG

@sketch-hq/sketch-assistant-utils

Version:

Utility functions and types for Sketch Assistants.

11 lines 481 B
import { RunInput, RunOutput, RunRejection } from '@sketch-hq/sketch-assistant-types'; export declare function isRunRejection(val: unknown): val is RunRejection; /** * Create a RunRejection object. */ export declare const createRunRejection: (message: string, code?: RunRejection['code'], error?: unknown) => RunRejection; /** * Run multiple assistants. */ export declare const runMultipleAssistants: (input: RunInput) => Promise<RunOutput>; //# sourceMappingURL=index.d.ts.map