@nodots-llc/backgammon-types
Version:
Type definitions for Nodots Backgammon
26 lines • 776 B
JavaScript
;
/**
* XG (eXtreme Gammon) Format Types
*
* Types for importing and exporting games in the XG text format.
* This format is used by XG Mobile and other backgammon software
* for sharing and analyzing games.
*
* Reference: https://www.extremegammon.com/xgformat.aspx
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.XGParserError = void 0;
/**
* Parse error details
*/
class XGParserError extends Error {
constructor(message, lineNumber, columnNumber, lineContent) {
super(message);
this.lineNumber = lineNumber;
this.columnNumber = columnNumber;
this.lineContent = lineContent;
this.name = 'XGParserError';
}
}
exports.XGParserError = XGParserError;
//# sourceMappingURL=xg.js.map