@trimble-oss/trimble-id
Version:
Trimble Identity SDK for JavaScript/ TypeScript
31 lines (24 loc) • 646 B
TypeScript
/**
* Copyright (c) Trimble Inc.
* Licensed under the MIT License.
*/
/**
* @interface IPersistantStorage
* @description Interface for persistant storage
*/
export interface IPersistantStorage {
/**
* @param {string} key The key to store the value under
* @param {string} value The value to store
*/
SetItem(key: String, value: string): void
/**
* @param {string} key The key to retrieve the value from
* @returns {string} The value to stored
*/
GetItem(key: string): string
/**
* @param {string} key The key the value is stored under
*/
RemoveItem(key: string): void
}