UNPKG

@odata2ts/odata2ts

Version:

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

30 lines (29 loc) 755 B
import { BaseFormatter } from "./BaseFormatter.js"; /** * Prettier formatter. * * NOTE: Should be created like this => const formatter = await new NoopFormatter("./test.ts").init(); * * @export * @class NoopFormatter * @extends {Formatter} */ export declare class NoopFormatter extends BaseFormatter { /** * Initializes the formatter. * * @abstract * @returns {Promise<Formatter>} Initialized formatter * @memberof Formatter */ init(): Promise<BaseFormatter>; /** * Formats a given source code. * * @abstract * @param {string} source Source code to format * @returns {string} Formatted source code * @memberof Formatter */ format(source: string): Promise<string>; }