UNPKG

@azure-tools/typespec-apiview

Version:

Library for emitting APIView token files from TypeSpec

48 lines 2.19 kB
export interface ApiViewEmitterOptions { "output-file"?: string; "service"?: string; "include-global-namespace"?: boolean; "mapping-path"?: string; } export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{ "no-services-found": { readonly default: "No services found. Ensure there is a namespace in the spec annotated with the `@service` decorator."; }; "invalid-service": { readonly default: import("@typespec/compiler").CallableMessage<["value"]>; }; "invalid-option": { readonly default: import("@typespec/compiler").CallableMessage<["name"]>; }; "version-not-found": { readonly default: import("@typespec/compiler").CallableMessage<["version", "serviceName", "allowed"]>; }; }, ApiViewEmitterOptions, never>; export declare const reportDiagnostic: <C extends "no-services-found" | "invalid-service" | "invalid-option" | "version-not-found", M extends keyof { "no-services-found": { readonly default: "No services found. Ensure there is a namespace in the spec annotated with the `@service` decorator."; }; "invalid-service": { readonly default: import("@typespec/compiler").CallableMessage<["value"]>; }; "invalid-option": { readonly default: import("@typespec/compiler").CallableMessage<["name"]>; }; "version-not-found": { readonly default: import("@typespec/compiler").CallableMessage<["version", "serviceName", "allowed"]>; }; }[C]>(program: import("@typespec/compiler").Program, diag: import("@typespec/compiler").DiagnosticReport<{ "no-services-found": { readonly default: "No services found. Ensure there is a namespace in the spec annotated with the `@service` decorator."; }; "invalid-service": { readonly default: import("@typespec/compiler").CallableMessage<["value"]>; }; "invalid-option": { readonly default: import("@typespec/compiler").CallableMessage<["name"]>; }; "version-not-found": { readonly default: import("@typespec/compiler").CallableMessage<["version", "serviceName", "allowed"]>; }; }, C, M>) => void; //# sourceMappingURL=lib.d.ts.map