Skip to content

PassportClient

@tsed/cli-plugin-passport

Usage

typescript
import { PassportClient } from "@tsed/cli-plugin-passport";

See /packages/cli-plugin-passport/src/services/PassportClient.ts.

Overview

ts
class PassportClient {
    protected httpClient: CliHttpClient;
    getPackages(): Promise<PassportPackage[]>;
    getPackage(name: string): Promise<PassportPackage | undefined>;
    getPackageVersion(name: string): Promise<string>;
    getChoices(input?: string): Promise<{
        name: string;
        value: string;
    }[]>;
}

protected httpClient

ts
protected httpClient: CliHttpClient;

getPackages

ts
getPackages(): Promise<PassportPackage[]>;

getPackage

ts
getPackage(name: string): Promise<PassportPackage | undefined>;

getPackageVersion

ts
getPackageVersion(name: string): Promise<string>;

getChoices

ts
getChoices(input?: string): Promise<{
     name: string;
     value: string;
 }[]>;

Released under the MIT License.