forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
19 lines (15 loc) · 644 Bytes
/
types.ts
File metadata and controls
19 lines (15 loc) · 644 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { SemVer } from 'semver';
import { Resource } from '../types';
export type NugetPackage = { package: string; version: SemVer; uri: string };
export const INugetService = Symbol('INugetService');
export interface INugetService {
isReleaseVersion(version: SemVer): boolean;
getVersionFromPackageFileName(packageName: string): SemVer;
}
export const INugetRepository = Symbol('INugetRepository');
export interface INugetRepository {
getPackages(packageName: string, resource: Resource): Promise<NugetPackage[]>;
}