@phroun/paged-buffer
Version:
High-performance buffer system for editing massive files with intelligent memory management and undo/redo capabilities
32 lines • 795 B
JavaScript
;
/**
* Buffer data integrity state enumeration
* @enum {string}
*/
const BufferState = {
/** Data is intact and synchronized with source */
CLEAN: 'clean',
/** Some data is missing or source is unavailable, must save-as */
DETACHED: 'detached',
/** Serious data integrity issues detected */
CORRUPTED: 'corrupted'
};
/**
* File change detection strategies
* @enum {string}
*/
const FileChangeStrategy = {
/** Ignore external file changes */
IGNORE: 'ignore',
/** Warn user about external changes */
WARN: 'warn',
/** Automatically rebase changes */
REBASE: 'rebase',
/** Detach buffer from file */
DETACH: 'detach'
};
module.exports = {
BufferState,
FileChangeStrategy
};
//# sourceMappingURL=buffer-types.js.map