UNPKG

@har-sdk/core

Version:

The base package can be used to import specification files (i.e. HAR, OAS and Postman Collection) and detect their type.

8 lines (7 loc) 395 B
import { Doc, DocType, Spec, DocFormat } from './Spec'; import { Importer } from './Importer'; export declare class SpecImporter implements Importer<DocType> { private readonly importers; constructor(importers?: ReadonlyArray<Importer<DocType>>); import<TDocType extends DocType, TDoc = Doc<TDocType>>(value: string, format?: DocFormat): Promise<Spec<TDocType, TDoc> | undefined>; }