@apistudio/apim-cli
Version:
CLI for API Management Products
22 lines (19 loc) • 665 B
text/typescript
import { VCSFileInfo } from "../../vcs/models/vcs-file-info.model.js";
import { OpenApiSpecDocument } from "../interfaces/api-spec-handler.interface.js";
export type APIContext = {
data: OpenApiSpecDocument,
context: {
file: FileSystemFileHandle | VCSFileInfo;
},
selectedItems: Array<SelectionItem>;
openAPIVersion: string | null;
};
export type SelectionType = 'module' | 'path' | 'operation' | 'component' | 'response';
export type SelectionItem = {
position: number;
type: SelectionType;
value: string | number;
showBreadCrumbs: boolean;
displayNameForBreadCrumbs: string;
onBreadCrumbClick?: () => void;
}