-
Notifications
You must be signed in to change notification settings - Fork 10
/
csproj2ts.d.ts
96 lines (96 loc) · 3.45 KB
/
csproj2ts.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import { Promise } from 'es6-promise';
declare namespace csproj2ts {
const DEFAULT_TYPESCRIPT_VERSION = "2.5.3";
interface TypeScriptSettings extends TypeScriptConfiguration {
VSProjectDetails?: VSProjectDetails;
files?: string[];
}
interface VSProjectParams {
ProjectFileName?: string;
MSBuildExtensionsPath32?: string;
VisualStudioVersion?: string;
TypeScriptVersion?: string;
ActiveConfiguration?: string;
ActivePlatform?: string;
}
interface VSProjectDetails extends VSProjectParams {
DefaultProjectConfiguration?: string;
DefaultProjectPlatform?: string;
DefaultVisualStudioVersion?: string;
TypeScriptDefaultPropsFilePath?: string;
TypeScriptDefaultConfiguration?: TypeScriptConfiguration;
}
interface TypeScriptConfiguration {
AdditionalFlags?: string;
AllowJS?: boolean;
AllowSyntheticDefaultImports?: boolean;
AllowUnreachableCode?: boolean;
AllowUnusedLabels?: boolean;
AlwaysStrict?: boolean;
BaseUrl?: string;
Charset?: string;
CheckJs?: boolean;
CodePage?: string;
CompileBlocked?: boolean;
CompileOnSaveEnabled?: boolean;
DeclarationDir?: string;
DownlevelIteration?: boolean;
EmitBOM?: boolean;
EmitDecoratorMetadata?: boolean;
ExperimentalAsyncFunctions?: boolean;
ExperimentalDecorators?: boolean;
ESModuleInterop?: boolean;
ForceConsistentCasingInFileNames?: boolean;
GeneratesDeclarations?: boolean;
ImportHelpers?: boolean;
InlineSourceMap?: boolean;
InlineSources?: boolean;
IsolatedModules?: boolean;
JSXEmit?: string;
JSXFactory?: string;
Lib?: string;
MapRoot?: string;
ModuleKind?: string;
ModuleResolution?: string;
NewLine?: string;
NoEmitHelpers?: boolean;
NoEmitOnError?: boolean;
NoFallthroughCasesInSwitch?: boolean;
NoImplicitAny?: boolean;
NoImplicitReturns?: boolean;
NoImplicitThis?: boolean;
NoImplicitUseStrict?: boolean;
NoUnusedLocals?: boolean;
NoUnusedParameters?: boolean;
NoLib?: boolean;
NoResolve?: boolean;
NoStrictGenericChecks?: boolean;
OutFile?: string;
OutDir?: string;
PreserveConstEnums?: boolean;
PreserveSymlinks?: boolean;
PreferredUILang?: string;
ReactNamespace?: string;
RemoveComments?: boolean;
RootDir?: boolean;
SkipLibCheck?: boolean;
SkipDefaultLibCheck?: boolean;
SourceMap?: boolean;
SourceRoot?: string;
Strict?: boolean;
StrictFunctionTypes?: boolean;
StrictNullChecks?: boolean;
StrictPropertyInitialization?: boolean;
StripInternal?: boolean;
SuppressExcessPropertyErrors?: boolean;
SuppressImplicitAnyIndexErrors?: boolean;
Target?: string;
}
const fixVersion: (version: string) => string;
var xml2jsReadXMLFile: (fileName: string) => Promise<any>;
var getTypeScriptSettings: (projectInfo: VSProjectParams) => Promise<TypeScriptSettings>;
var normalizePath: (path: string, settings: TypeScriptSettings) => string;
var getTypeScriptDefaultsFromPropsFileOrDefaults: (settings: TypeScriptSettings) => Promise<TypeScriptConfiguration>;
var programFiles: () => string;
}
export = csproj2ts;