@phroun/paged-buffer
Version:
High-performance buffer system for editing massive files with intelligent memory management and undo/redo capabilities
30 lines • 1.15 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FileChangeStrategy = exports.BufferState = void 0;
/**
* Buffer data integrity state enumeration
*/
var BufferState;
(function (BufferState) {
/** Data is intact and synchronized with source */
BufferState["CLEAN"] = "clean";
/** Some data is missing or source is unavailable, must save-as */
BufferState["DETACHED"] = "detached";
/** Serious data integrity issues detected */
BufferState["CORRUPTED"] = "corrupted";
})(BufferState || (exports.BufferState = BufferState = {}));
/**
* File change detection strategies
*/
var FileChangeStrategy;
(function (FileChangeStrategy) {
/** Ignore external file changes */
FileChangeStrategy["IGNORE"] = "ignore";
/** Warn user about external changes */
FileChangeStrategy["WARN"] = "warn";
/** Automatically rebase changes */
FileChangeStrategy["REBASE"] = "rebase";
/** Detach buffer from file */
FileChangeStrategy["DETACH"] = "detach";
})(FileChangeStrategy || (exports.FileChangeStrategy = FileChangeStrategy = {}));
//# sourceMappingURL=buffer-types.js.map