-
-
Notifications
You must be signed in to change notification settings - Fork 63
/
interfaces.ts
59 lines (52 loc) · 1.59 KB
/
interfaces.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import {CompilerOptions} from '@tsd/typescript';
export interface RawCompilerOptions {
[option: string]: any;
}
export interface Config<Options = CompilerOptions> {
directory: string;
compilerOptions: Options;
}
export type RawConfig = Partial<Config<RawCompilerOptions>>;
export interface Context {
cwd: string;
pkg: any;
typingsFile: string;
testFiles: string[];
config: Config;
}
export enum DiagnosticCode {
AwaitExpressionOnlyAllowedWithinAsyncFunction = 1308,
TopLevelAwaitOnlyAllowedWhenModuleESNextOrSystem = 1378,
GenericTypeRequiresTypeArguments = 2314,
TypeIsNotAssignableToOtherType = 2322,
TypeDoesNotSatisfyTheConstraint = 2344,
PropertyDoesNotExistOnType = 2339,
ArgumentTypeIsNotAssignableToParameterType = 2345,
CannotAssignToReadOnlyProperty = 2540,
ExpectedArgumentsButGotOther = 2554,
TypeHasNoPropertiesInCommonWith = 2559,
ValueOfTypeNotCallable = 2348,
ExpressionNotCallable = 2349,
OnlyVoidFunctionIsNewCallable = 2350,
ExpressionNotConstructable = 2351,
NoOverloadExpectsCountOfArguments = 2575,
ThisContextOfTypeNotAssignableToMethodOfThisType = 2684,
PropertyMissingInType1ButRequiredInType2 = 2741,
NoOverloadExpectsCountOfTypeArguments = 2743,
NoOverloadMatches = 2769,
MemberCannotHaveOverrideModifierBecauseItIsNotDeclaredInBaseClass = 4113,
MemberMustHaveOverrideModifier = 4114,
NewExpressionTargetLackingConstructSignatureHasAnyType = 7009,
}
export interface Diagnostic {
fileName: string;
message: string;
severity: 'error' | 'warning';
line?: number;
column?: number;
}
export interface Location {
fileName: string;
start: number;
end: number;
}