blob: 0b3461483880eed30e9b9d1c07013a76de671051 [file] [log] [blame]
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {NumericChangeId} from '../../types/common';
import {Finalizable} from '../../types/types';
export interface StorageObject {
message?: string;
updated: number;
}
export interface StorageService extends Finalizable {
getEditableContentItem(key: string): StorageObject | null;
setEditableContentItem(key: string, message: string): void;
eraseEditableContentItem(key: string): void;
eraseEditableContentItemsForChangeEdit(changeNum?: NumericChangeId): void;
}