UNPKG

@typespec/http-client-java

Version:

TypeSpec library for emitting Java client from the TypeSpec REST protocol binding

23 lines 1.08 kB
import { Diagnostic, Program, Type } from "@typespec/compiler"; import { SpawnOptions } from "child_process"; export declare function trace(program: Program, msg: string): void; export declare function pascalCase(name: string): string; export declare function getNamespace(type: Type | undefined): string | undefined; export declare function stringArrayContainsIgnoreCase(stringList: string[], str: string): boolean; export declare function removeClientSuffix(clientName: string): string; export type SpawnReturns = { stdout: string; stderr: string; }; export declare class SpawnError extends Error { stdout: string; stderr: string; constructor(message: string, stdout: string, stderr: string); } export declare class DiagnosticError extends Error { diagnostic: Diagnostic; constructor(diagnostic: Diagnostic); } export declare function spawnAsync(command: string, args: readonly string[], options: SpawnOptions): Promise<SpawnReturns>; export declare function escapeJavaKeywords(name: string, suffix: string): string; //# sourceMappingURL=utils.d.ts.map