json-schema.d.ts 1.0 KB

1234567891011121314151617
  1. /**
  2. * @license
  3. * Copyright Google Inc. All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. import { BaseException, json } from '@angular-devkit/core';
  9. import { CommandDescription, Option, SubCommandDescription } from '../models/interface';
  10. export declare class CommandJsonPathException extends BaseException {
  11. readonly path: string;
  12. readonly name: string;
  13. constructor(path: string, name: string);
  14. }
  15. export declare function parseJsonSchemaToSubCommandDescription(name: string, jsonPath: string, registry: json.schema.SchemaRegistry, schema: json.JsonObject): Promise<SubCommandDescription>;
  16. export declare function parseJsonSchemaToCommandDescription(name: string, jsonPath: string, registry: json.schema.SchemaRegistry, schema: json.JsonObject): Promise<CommandDescription>;
  17. export declare function parseJsonSchemaToOptions(registry: json.schema.SchemaRegistry, schema: json.JsonObject): Promise<Option[]>;