firmament-yargs
Version:
Typescript classes for building CLI node applications
13 lines (12 loc) • 855 B
TypeScript
/// <reference types="node" />
import { ForceError } from '../force-error';
import { RemoteCatalog } from './remote-catalog';
import { Url } from 'url';
import { RemoteCatalogResource } from "./remote-catalog-resource";
export interface RemoteCatalogGetter extends ForceError {
getCatalogFromUrl(url: Url | string, cb: (err: Error, remoteCatalog: RemoteCatalog) => void): any;
getRemoteResource(url: Url | string, parentCatalogEntryName: string, cb: (err: Error, remoteCatalogResource?: RemoteCatalogResource) => void): any;
resolveTextResourceFromUrl(url: Url | string, cb: (err: Error, text: string, absoluteUrl?: string) => void): any;
resolveJsonObjectFromUrl(url: Url | string, cb: (err: Error, jsonObject: any, absoluteUrl: string) => void): any;
getParsedUrl(url: Url | string, cb: (err: Error, parsedUrl: Url) => void): any;
}