webextensions-schema
Version:
Programmatically consume the WebExtensions Schema JSON files
28 lines (27 loc) • 730 B
TypeScript
import { Schema } from './types';
export declare class DownloadParse {
private _tag;
private tagDir;
private readonly mozRepo;
private readonly mozArchiveURL;
private readonly mozLatestFxURL;
private readonly outDir;
private readonly schemaTypes;
private readonly schemasDir;
private readonly schemas;
constructor({ tag }?: {
tag?: string;
});
set tag(tag: string);
get tag(): string;
run(): Promise<this>;
getSchemas(): Schema;
getTag(): string;
private extractNamespaces;
private parseSchemas;
private downloadSchemas;
private downloadSchema;
private tagDirExists;
private fetchLatestStableTag;
private getDownloadArchiveUrl;
}