UNPKG

419 BTypeScriptView Raw
1export default class ApiGenUtils {
2 /**
3 * Util method to extract all requests from a given swagger schema json file.
4 */
5 static extractApiEventsAndRequests(swaggerSchemaFile: string): Promise<{
6 apiName: string;
7 requests: string[];
8 events: string[];
9 }[]>;
10 static generateApiEventsAndRequestNames(api: any): {
11 requests: string[];
12 events: string[];
13 };
14}