ut-tools
Version:
Build and Release management automation package.
15 lines (14 loc) • 433 B
TypeScript
import type { JsonPath } from '@stoplight/types';
declare type MessageObject = Record<string, unknown>;
declare type AsyncAPI = {
channels?: Record<string, {
subscribe?: Record<string, unknown>;
publish?: Record<string, unknown>;
}>;
};
declare type Result = {
path: JsonPath;
message: MessageObject;
};
export declare function getAllMessages(asyncapi: AsyncAPI): IterableIterator<Result>;
export {};