UNPKG

@odata2ts/odata2ts

Version:

Flexible generator to produce various TypeScript artefacts (from simple model interfaces to complete odata clients) from OData metadata files

13 lines (12 loc) 456 B
import { UrlSourceConfiguration } from "../OptionModel.js"; /** * Retrieves the metadata from the given URL using the given configuration. * * Failure handling must be implemented by consumer. * Exception is thrown for failed requests (400, 401, ...). * * @param sourceUrl * @param sourceConfig * @param debug */ export declare function downloadMetadata(sourceUrl: string, sourceConfig?: UrlSourceConfiguration, debug?: boolean): Promise<string>;