@appsemble/utils
Version:
Utility functions used in Appsemble internally
17 lines (16 loc) • 593 B
JavaScript
import { BaseActionDefinition } from './BaseActionDefinition.js';
import { extendJSONSchema } from './utils.js';
export const ThrowActionDefinition = extendJSONSchema(BaseActionDefinition, {
type: 'object',
additionalProperties: false,
required: ['type'],
properties: {
type: {
enum: ['throw'],
description: `This action throws a new exception based on the data that is passed through.
This can be used to create a custom error that ends up in the error action handler.
`,
},
},
});
//# sourceMappingURL=ThrowActionDefinition.js.map