UNPKG

@atlaskit/editor-wikimarkup-transformer

Version:

Wiki markup transformer for JIRA and Confluence

23 lines (21 loc) 482 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.error = error; function error(message, _input, line, column) { throw createError({ message: message, line: line, column: column }); } // Ignored via go/ees005 // eslint-disable-next-line @typescript-eslint/no-explicit-any function createError(props) { var err = Object.create(SyntaxError.prototype); Object.assign(err, props, { name: 'SyntaxError' }); return err; }