1 | import { Promise } from 'es6-promise';
|
2 | declare namespace csproj2ts {
|
3 | const DEFAULT_TYPESCRIPT_VERSION = "2.5.3";
|
4 | interface TypeScriptSettings extends TypeScriptConfiguration {
|
5 | VSProjectDetails?: VSProjectDetails;
|
6 | files?: string[];
|
7 | }
|
8 | interface VSProjectParams {
|
9 | ProjectFileName?: string;
|
10 | MSBuildExtensionsPath32?: string;
|
11 | VisualStudioVersion?: string;
|
12 | TypeScriptVersion?: string;
|
13 | ActiveConfiguration?: string;
|
14 | ActivePlatform?: string;
|
15 | }
|
16 | interface VSProjectDetails extends VSProjectParams {
|
17 | DefaultProjectConfiguration?: string;
|
18 | DefaultProjectPlatform?: string;
|
19 | DefaultVisualStudioVersion?: string;
|
20 | TypeScriptDefaultPropsFilePath?: string;
|
21 | TypeScriptDefaultConfiguration?: TypeScriptConfiguration;
|
22 | }
|
23 | interface TypeScriptConfiguration {
|
24 | AdditionalFlags?: string;
|
25 | AllowJS?: boolean;
|
26 | AllowSyntheticDefaultImports?: boolean;
|
27 | AllowUnreachableCode?: boolean;
|
28 | AllowUnusedLabels?: boolean;
|
29 | AlwaysStrict?: boolean;
|
30 | BaseUrl?: string;
|
31 | Charset?: string;
|
32 | CheckJs?: boolean;
|
33 | CodePage?: string;
|
34 | CompileBlocked?: boolean;
|
35 | CompileOnSaveEnabled?: boolean;
|
36 | DeclarationDir?: string;
|
37 | DownlevelIteration?: boolean;
|
38 | EmitBOM?: boolean;
|
39 | EmitDecoratorMetadata?: boolean;
|
40 | ExperimentalAsyncFunctions?: boolean;
|
41 | ExperimentalDecorators?: boolean;
|
42 | ESModuleInterop?: boolean;
|
43 | ForceConsistentCasingInFileNames?: boolean;
|
44 | GeneratesDeclarations?: boolean;
|
45 | ImportHelpers?: boolean;
|
46 | InlineSourceMap?: boolean;
|
47 | InlineSources?: boolean;
|
48 | IsolatedModules?: boolean;
|
49 | JSXEmit?: string;
|
50 | JSXFactory?: string;
|
51 | Lib?: string;
|
52 | MapRoot?: string;
|
53 | ModuleKind?: string;
|
54 | ModuleResolution?: string;
|
55 | NewLine?: string;
|
56 | NoEmitHelpers?: boolean;
|
57 | NoEmitOnError?: boolean;
|
58 | NoFallthroughCasesInSwitch?: boolean;
|
59 | NoImplicitAny?: boolean;
|
60 | NoImplicitReturns?: boolean;
|
61 | NoImplicitThis?: boolean;
|
62 | NoImplicitUseStrict?: boolean;
|
63 | NoUnusedLocals?: boolean;
|
64 | NoUnusedParameters?: boolean;
|
65 | NoLib?: boolean;
|
66 | NoResolve?: boolean;
|
67 | NoStrictGenericChecks?: boolean;
|
68 | OutFile?: string;
|
69 | OutDir?: string;
|
70 | PreserveConstEnums?: boolean;
|
71 | PreserveSymlinks?: boolean;
|
72 | PreferredUILang?: string;
|
73 | ReactNamespace?: string;
|
74 | RemoveComments?: boolean;
|
75 | RootDir?: boolean;
|
76 | SkipLibCheck?: boolean;
|
77 | SkipDefaultLibCheck?: boolean;
|
78 | SourceMap?: boolean;
|
79 | SourceRoot?: string;
|
80 | Strict?: boolean;
|
81 | StrictFunctionTypes?: boolean;
|
82 | StrictNullChecks?: boolean;
|
83 | StrictPropertyInitialization?: boolean;
|
84 | StripInternal?: boolean;
|
85 | SuppressExcessPropertyErrors?: boolean;
|
86 | SuppressImplicitAnyIndexErrors?: boolean;
|
87 | Target?: string;
|
88 | }
|
89 | const fixVersion: (version: string) => string;
|
90 | var xml2jsReadXMLFile: (fileName: string) => Promise<any>;
|
91 | var getTypeScriptSettings: (projectInfo: VSProjectParams) => Promise<TypeScriptSettings>;
|
92 | var normalizePath: (path: string, settings: TypeScriptSettings) => string;
|
93 | var getTypeScriptDefaultsFromPropsFileOrDefaults: (settings: TypeScriptSettings) => Promise<TypeScriptConfiguration>;
|
94 | var programFiles: () => string;
|
95 | }
|
96 | export = csproj2ts;
|