@microsoft/teams.apps
Version:
<p> <a href="https://www.npmjs.com/package/@microsoft/teams.apps" target="_blank"> <img src="https://img.shields.io/npm/v/@microsoft/teams.apps/latest" /> </a> <a href="https://www.npmjs.com/package/@microsoft/teams.apps?activeTab=code
17 lines (16 loc) • 537 B
TypeScript
import type { IStorage } from '@microsoft/teams.common';
/** Configures per-turn conversation and user state. */
export type StateOptions = {
/**
* Storage used for persisted state JSON strings.
*
* Providers may encode the strings to UTF-8 or another native representation.
* Defaults to dedicated process-local storage.
*/
readonly storage?: IStorage<string, string>;
/**
* Prefix applied to conversation and user storage keys.
* @default 'ts'
*/
readonly keyPrefix?: string;
};