@@ -767,12 +767,14 @@ declare namespace ts.server.protocol {
767
767
insertSpaceAfterCommaDelimiter?: boolean;
768
768
insertSpaceAfterSemicolonInForStatements?: boolean;
769
769
insertSpaceBeforeAndAfterBinaryOperators?: boolean;
770
+ insertSpaceAfterConstructor?: boolean;
770
771
insertSpaceAfterKeywordsInControlFlowStatements?: boolean;
771
772
insertSpaceAfterFunctionKeywordForAnonymousFunctions?: boolean;
772
773
insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis?: boolean;
773
774
insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets?: boolean;
774
775
insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces?: boolean;
775
776
insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean;
777
+ insertSpaceBeforeFunctionParenthesis?: boolean;
776
778
placeOpenBraceOnNewLineForFunctions?: boolean;
777
779
placeOpenBraceOnNewLineForControlBlocks?: boolean;
778
780
}
@@ -4181,7 +4183,7 @@ declare namespace ts {
4181
4183
key: string;
4182
4184
message: string;
4183
4185
};
4184
- Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher : {
4186
+ Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0o_0 : {
4185
4187
code: number;
4186
4188
category: DiagnosticCategory;
4187
4189
key: string;
@@ -7865,6 +7867,12 @@ declare namespace ts {
7865
7867
key: string;
7866
7868
message: string;
7867
7869
};
7870
+ File_0_has_an_unsupported_extension_so_skipping_it: {
7871
+ code: number;
7872
+ category: DiagnosticCategory;
7873
+ key: string;
7874
+ message: string;
7875
+ };
7868
7876
Only_amd_and_system_modules_are_supported_alongside_0: {
7869
7877
code: number;
7870
7878
category: DiagnosticCategory;
@@ -8255,6 +8263,12 @@ declare namespace ts {
8255
8263
key: string;
8256
8264
message: string;
8257
8265
};
8266
+ Resolution_for_module_0_was_found_in_cache: {
8267
+ code: number;
8268
+ category: DiagnosticCategory;
8269
+ key: string;
8270
+ message: string;
8271
+ };
8258
8272
Variable_0_implicitly_has_an_1_type: {
8259
8273
code: number;
8260
8274
category: DiagnosticCategory;
@@ -8687,6 +8701,12 @@ declare namespace ts {
8687
8701
key: string;
8688
8702
message: string;
8689
8703
};
8704
+ Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0o_0: {
8705
+ code: number;
8706
+ category: DiagnosticCategory;
8707
+ key: string;
8708
+ message: string;
8709
+ };
8690
8710
};
8691
8711
}
8692
8712
declare namespace ts {
@@ -8907,7 +8927,13 @@ declare namespace ts {
8907
8927
}): string[] | undefined;
8908
8928
function resolveTypeReferenceDirective(typeReferenceDirectiveName: string, containingFile: string | undefined, options: CompilerOptions, host: ModuleResolutionHost): ResolvedTypeReferenceDirectiveWithFailedLookupLocations;
8909
8929
function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[];
8910
- function resolveModuleName ( moduleName : string , containingFile : string , compilerOptions : CompilerOptions , host : ModuleResolutionHost ) : ResolvedModuleWithFailedLookupLocations ;
8930
+ interface ModuleResolutionCache {
8931
+ getOrCreateCacheForDirectory(directoryName: string): Map<ResolvedModuleWithFailedLookupLocations>;
8932
+ }
8933
+ function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string): {
8934
+ getOrCreateCacheForDirectory: (directoryName: string) => Map<ResolvedModuleWithFailedLookupLocations>;
8935
+ };
8936
+ function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations;
8911
8937
function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost): ResolvedModuleWithFailedLookupLocations;
8912
8938
function directoryProbablyExists(directoryName: string, host: {
8913
8939
directoryExists?: (directoryName: string) => boolean;
@@ -8991,6 +9017,7 @@ declare namespace ts {
8991
9017
let fullTripleSlashReferenceTypeReferenceDirectiveRegEx: RegExp;
8992
9018
let fullTripleSlashAMDReferencePathRegEx: RegExp;
8993
9019
function isPartOfTypeNode(node: Node): boolean;
9020
+ function isChildOfLiteralType(node: Node): boolean;
8994
9021
function forEachReturnStatement<T>(body: Block, visitor: (stmt: ReturnStatement) => T): T;
8995
9022
function forEachYieldExpression(body: Block, visitor: (expr: YieldExpression) => void): void;
8996
9023
function getRestParameterElementType(node: TypeNode): TypeNode;
@@ -10049,6 +10076,7 @@ declare namespace ts {
10049
10076
InsertSpaceAfterCommaDelimiter: boolean;
10050
10077
InsertSpaceAfterSemicolonInForStatements: boolean;
10051
10078
InsertSpaceBeforeAndAfterBinaryOperators: boolean;
10079
+ InsertSpaceAfterConstructor?: boolean;
10052
10080
InsertSpaceAfterKeywordsInControlFlowStatements: boolean;
10053
10081
InsertSpaceAfterFunctionKeywordForAnonymousFunctions: boolean;
10054
10082
InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: boolean;
@@ -10057,13 +10085,15 @@ declare namespace ts {
10057
10085
InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: boolean;
10058
10086
InsertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean;
10059
10087
InsertSpaceAfterTypeAssertion?: boolean;
10088
+ InsertSpaceBeforeFunctionParenthesis?: boolean;
10060
10089
PlaceOpenBraceOnNewLineForFunctions: boolean;
10061
10090
PlaceOpenBraceOnNewLineForControlBlocks: boolean;
10062
10091
}
10063
10092
interface FormatCodeSettings extends EditorSettings {
10064
10093
insertSpaceAfterCommaDelimiter?: boolean;
10065
10094
insertSpaceAfterSemicolonInForStatements?: boolean;
10066
10095
insertSpaceBeforeAndAfterBinaryOperators?: boolean;
10096
+ insertSpaceAfterConstructor?: boolean;
10067
10097
insertSpaceAfterKeywordsInControlFlowStatements?: boolean;
10068
10098
insertSpaceAfterFunctionKeywordForAnonymousFunctions?: boolean;
10069
10099
insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis?: boolean;
@@ -10072,6 +10102,7 @@ declare namespace ts {
10072
10102
insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces?: boolean;
10073
10103
insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces?: boolean;
10074
10104
insertSpaceAfterTypeAssertion?: boolean;
10105
+ insertSpaceBeforeFunctionParenthesis?: boolean;
10075
10106
placeOpenBraceOnNewLineForFunctions?: boolean;
10076
10107
placeOpenBraceOnNewLineForControlBlocks?: boolean;
10077
10108
}
@@ -10710,6 +10741,7 @@ declare namespace ts.formatting {
10710
10741
SpaceAfterLetConstInVariableDeclaration: Rule;
10711
10742
NoSpaceBeforeOpenParenInFuncCall: Rule;
10712
10743
SpaceAfterFunctionInFuncDecl: Rule;
10744
+ SpaceBeforeOpenParenInFuncDecl: Rule;
10713
10745
NoSpaceBeforeOpenParenInFuncDecl: Rule;
10714
10746
SpaceAfterVoidOperator: Rule;
10715
10747
NoSpaceBetweenReturnAndSemicolon: Rule;
@@ -10718,6 +10750,7 @@ declare namespace ts.formatting {
10718
10750
SpaceAfterGetSetInMember: Rule;
10719
10751
SpaceBeforeBinaryKeywordOperator: Rule;
10720
10752
SpaceAfterBinaryKeywordOperator: Rule;
10753
+ SpaceAfterConstructor: Rule;
10721
10754
NoSpaceAfterConstructor: Rule;
10722
10755
NoSpaceAfterModuleImport: Rule;
10723
10756
SpaceAfterCertainTypeScriptKeywords: Rule;
0 commit comments