UNPKG

@appsemble/utils

Version:

Utility functions used in Appsemble internally

20 lines (19 loc) 650 B
import { BaseActionDefinition } from './BaseActionDefinition.js'; import { extendJSONSchema } from './utils.js'; export const StaticActionDefinition = extendJSONSchema(BaseActionDefinition, { type: 'object', additionalProperties: false, required: ['type', 'value'], properties: { type: { enum: ['static'], description: `The \`static\` action returns static data defined in the action definition. This is useful for example for stubbing data. `, }, value: { description: 'The static value to return.', }, }, }); //# sourceMappingURL=StaticActionDefinition.js.map