cm-spyglass
Version:
A Codemirror extension that provides syntax highlighting, linting, and autocompletion for Minecraft datapacks using SpyglassMC
14 lines (12 loc) • 341 B
JavaScript
export default class Hint {
/** @type {number} */ from;
/** @type {number} */ to;
/** @type {string} */ message;
/** @type {string} */ severity;
constructor(from, to, message, severity = 'error') {
this.from = from;
this.to = to;
this.message = message;
this.severity = severity;
}
}