UNPKG

@appsemble/lang-sdk

Version:

Language SDK for Appsemble

20 lines (19 loc) 668 B
import { BaseActionDefinition } from './BaseActionDefinition.js'; import { extendJSONSchema } from '../utils/extendJSONSchema.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