UNPKG

@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

19 lines (18 loc) 459 B
import { ILogger } from '@microsoft/teams.common'; export type RetryOptions = { /** * the max number of retry attempts * @default 5 */ readonly max?: number; /** * the delay in ms per retry * @default 500ms */ readonly delay?: number; /** * the logger to use */ readonly logger?: ILogger; }; export declare function retry<T = any>(factory: () => Promise<T>, options?: RetryOptions): Promise<T>;