Options
All
  • Public
  • Public/Protected
  • All
Menu

The base class for NuGet auto-complete clients.

Hierarchy

Index

Constructors

constructor

Properties

defaultPageSize

defaultPageSize: number = 10

The maximum number of results to return.

Accessors

apiVersion

  • get apiVersion(): NuGetApiVersion.Unknown | NuGetApiVersion.V2 | NuGetApiVersion.V3
  • The NuGet API version used by the client.

    Returns NuGetApiVersion.Unknown | NuGetApiVersion.V2 | NuGetApiVersion.V3

Methods

getAvailablePackageVersions

  • getAvailablePackageVersions(packageId: string, pageSize?: number): Promise<string[]>
  • Get available versions for the specified package.

    Parameters

    • packageId: string

      The Id of the target package.

    • Optional pageSize: number

    Returns Promise<string[]>

    A promise that resolves to all suggested package versions.

suggestPackageIds

  • suggestPackageIds(partialId: string, pageSize?: number): Promise<string[]>
  • Provide suggestions to complete a package Id.

    Parameters

    • partialId: string

      The partial package Id on which the suggestions will be based.

    • Optional pageSize: number

    Returns Promise<string[]>

    A promise that resolves to all suggested package Ids.

Generated using TypeDoc