@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
15 lines (14 loc) • 428 B
TypeScript
import type { IApi } from '../api';
/**
* This accessor provides methods for adding a custom api.
* It is provided during the initialization of your App
*/
export interface IApiExtend {
/**
* Adds an api which can be called by external services lateron.
* Should an api already exists an error will be thrown.
*
* @param api the command information
*/
provideApi(api: IApi): Promise<void>;
}