forked from Derivitec/vscode-dotnet-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
44 lines (36 loc) · 1.28 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Type definitions for vscode-dotnet-adapter 0.8.0
// Project: vscode-dotnet-adapter
// Definitions by: Andrew Bridge <https://github.com/andrewbridge>
type TestSuiteInfo = import('vscode-test-adapter-api').TestSuiteInfo;
type TestInfo = import('vscode-test-adapter-api').TestInfo;
type TestSuiteEvent = import('vscode-test-adapter-api').TestSuiteEvent;
type TestEvent = import('vscode-test-adapter-api').TestEvent;
type VSCodeUri = import('vscode').Uri;
type UngroupedSearchPatterns = string | string[];
type GroupedSearchPatterns = { [key: string]: UngroupedSearchPatterns };
type SearchPatterns = UngroupedSearchPatterns | GroupedSearchPatterns;
interface DerivitecTestSuiteInfo extends TestSuiteInfo {
children: (DerivitecTestSuiteInfo | DerivitecTestInfo)[];
parent: DerivitecTestSuiteInfo | null;
sourceDll: VSCodeUri | 'root';
}
interface DerivitecTestInfo extends TestInfo {
parent: DerivitecTestSuiteInfo | null;
sourceDll: VSCodeUri;
}
interface DerivitecSuiteContext {
node: DerivitecTestSuiteInfo ;
event?: TestSuiteEvent
}
interface DerivitecTestContext {
node: DerivitecTestInfo;
event?: TestEvent
}
type Partial<T> = {
[P in keyof T]?: T[P];
}
interface ConfigEntry<T> {
default: T,
typecheck: (data: any) => boolean,
required?: boolean
}