UNPKG

@appsemble/utils

Version:

Utility functions used in Appsemble internally

19 lines 665 B
import { BaseActionDefinition } from './BaseActionDefinition.js'; import { extendJSONSchema } from './utils.js'; export const DownloadActionDefinition = extendJSONSchema(BaseActionDefinition, { type: 'object', required: ['type', 'filename'], additionalProperties: false, properties: { type: { enum: ['download'], description: 'Download the data as a file.', }, filename: { type: 'string', description: 'The filename to save the file as. This must include a file extension.', pattern: '\\.', }, }, }); //# sourceMappingURL=DownloadActionDefinition.js.map