UNPKG

@appsemble/utils

Version:

Utility functions used in Appsemble internally

22 lines (21 loc) 704 B
import { BaseActionDefinition } from './BaseActionDefinition.js'; import { extendJSONSchema } from './utils.js'; export const LogActionDefinition = extendJSONSchema(BaseActionDefinition, { type: 'object', additionalProperties: false, required: ['type'], properties: { type: { enum: ['log'], description: `Output the result of the action into the console. This is mostly useful for debugging blocks during development. `, }, level: { enum: ['error', 'info', 'warn'], default: 'info', description: 'The logging level on which to log.', }, }, }); //# sourceMappingURL=LogActionDefinition.js.map