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

10 lines (9 loc) 409 B
export type Provider<T = any> = ValueProvider<T> | FactoryProvider<T>; export type ValueProvider<T = any> = { useValue: T; }; export declare function isValueProvider<T = any>(provider: Provider<T>): provider is ValueProvider<T>; export type FactoryProvider<T = any> = { useFactory: () => T; }; export declare function isFactoryProvider<T = any>(provider: Provider<T>): provider is FactoryProvider<T>;