UNPKG

@sketch-hq/sketch-assistant-utils

Version:

Utility functions and types for Sketch Assistants.

13 lines 634 B
import { AssistantConfigSchemaCreator } from '@sketch-hq/sketch-assistant-types'; /** * Builds the JSON Schema for the configuration accepted by the given * assistant. The schema is augmented with assistant's configuration, * meaning the options set in the configuration are used as default values * for the corresponding properties. * * @param assistant Assistant to generate the configuration schema from * @returns JSON Schema describing the assistant's configuration shape */ declare const buildAssistantConfigSchema: AssistantConfigSchemaCreator; export { buildAssistantConfigSchema }; //# sourceMappingURL=index.d.ts.map