UNPKG

@verizonconnect/ngx-form-generator

Version:

Generates an Angular ReactiveForm from a Swagger or OpenAPI definition

16 lines (15 loc) 661 B
/** * @license * Licensed under the MIT License, (“the License”); you may not use this * file except in compliance with the License. * * Copyright (c) 2020 Verizon */ import { Rule } from './rules'; import { OpenAPI } from 'openapi-types'; export declare function addRule(rule: Rule): void; export declare function resetRules(): void; export declare function makeFileName(swagger: OpenAPI.Document): string | undefined; export declare function makeForm(spec: OpenAPI.Document): string; export declare function saveFile(file: string, fileName: string): Promise<void>; export declare function loadSpec(fileOrUrlPath: string): Promise<OpenAPI.Document>;