@trimble-oss/trimble-id
Version:
Trimble Identity SDK for JavaScript/TypeScript
23 lines (22 loc) • 561 B
TypeScript
/**
* Copyright (c) Trimble Inc.
*/
/**
* Interface for persistant storage
*/
export interface PersistantStorage {
/**
* @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;
}