diff --git a/internal/checker/nodebuilderimpl.go b/internal/checker/nodebuilderimpl.go index afdc9494d7..5ac9b95369 100644 --- a/internal/checker/nodebuilderimpl.go +++ b/internal/checker/nodebuilderimpl.go @@ -532,7 +532,7 @@ func (b *nodeBuilderImpl) symbolToTypeNode(symbol *ast.Symbol, mask ast.SymbolFl specifier = b.getSpecifierForModuleSymbol(chain[0], core.ModuleKindESNext) attributes = b.f.NewImportAttributes( ast.KindWithKeyword, - b.f.NewNodeList([]*ast.Node{b.f.NewImportAttribute(b.f.NewStringLiteral("resolution-mode"), b.f.NewStringLiteral("import"))}), + b.f.NewNodeList([]*ast.Node{b.f.NewImportAttribute(b.newStringLiteral("resolution-mode"), b.newStringLiteral("import"))}), false, ) } @@ -561,7 +561,7 @@ func (b *nodeBuilderImpl) symbolToTypeNode(symbol *ast.Symbol, mask ast.SymbolFl } attributes = b.f.NewImportAttributes( ast.KindWithKeyword, - b.f.NewNodeList([]*ast.Node{b.f.NewImportAttribute(b.f.NewStringLiteral("resolution-mode"), b.f.NewStringLiteral(modeStr))}), + b.f.NewNodeList([]*ast.Node{b.f.NewImportAttribute(b.newStringLiteral("resolution-mode"), b.newStringLiteral(modeStr))}), false, ) } @@ -575,7 +575,7 @@ func (b *nodeBuilderImpl) symbolToTypeNode(symbol *ast.Symbol, mask ast.SymbolFl } } - lit := b.f.NewLiteralTypeNode(b.f.NewStringLiteral(specifier)) + lit := b.f.NewLiteralTypeNode(b.newStringLiteral(specifier)) b.ctx.approximateLength += len(specifier) + 10 // specifier + import("") if nonRootParts == nil || ast.IsEntityName(nonRootParts) { if nonRootParts != nil { @@ -692,12 +692,12 @@ func (b *nodeBuilderImpl) createAccessFromSymbolChain(chain []*ast.Symbol, index if ast.IsIndexedAccessTypeNode(lhs) { return b.f.NewIndexedAccessTypeNode( lhs, - b.f.NewLiteralTypeNode(b.f.NewStringLiteral(symbolName)), + b.f.NewLiteralTypeNode(b.newStringLiteral(symbolName)), ) } return b.f.NewIndexedAccessTypeNode( b.f.NewTypeReferenceNode(lhs, typeParameterNodes), - b.f.NewLiteralTypeNode(b.f.NewStringLiteral(symbolName)), + b.f.NewLiteralTypeNode(b.newStringLiteral(symbolName)), ) } @@ -736,7 +736,7 @@ func (b *nodeBuilderImpl) createExpressionFromSymbolChain(chain []*ast.Symbol, i } if startsWithSingleOrDoubleQuote(symbolName) && core.Some(symbol.Declarations, hasNonGlobalAugmentationExternalModuleSymbol) { - return b.f.NewStringLiteral(b.getSpecifierForModuleSymbol(symbol, core.ResolutionModeNone)) + return b.newStringLiteral(b.getSpecifierForModuleSymbol(symbol, core.ResolutionModeNone)) } if index == 0 || canUsePropertyAccess(symbolName) { @@ -757,7 +757,7 @@ func (b *nodeBuilderImpl) createExpressionFromSymbolChain(chain []*ast.Symbol, i var expression *ast.Expression if startsWithSingleOrDoubleQuote(symbolName) && symbol.Flags&ast.SymbolFlagsEnumMember == 0 { - expression = b.f.NewStringLiteral(stringutil.UnquoteString(symbolName)) + expression = b.newStringLiteral(stringutil.UnquoteString(symbolName)) } else if jsnum.FromString(symbolName).String() == symbolName { // TODO: the follwing in strada would assert if the number is negative, but no such assertion exists here // Moreover, what's even guaranteeing the name *isn't* -1 here anyway? Needs double-checking. @@ -2089,7 +2089,7 @@ func (b *nodeBuilderImpl) trackComputedName(accessExpression *ast.Node, enclosin } } -func (b *nodeBuilderImpl) createPropertyNameNodeForIdentifierOrLiteral(name string, _singleQuote bool, stringNamed bool, isMethod bool) *ast.Node { +func (b *nodeBuilderImpl) createPropertyNameNodeForIdentifierOrLiteral(name string, singleQuote bool, stringNamed bool, isMethod bool) *ast.Node { isMethodNamedNew := isMethod && name == "new" if !isMethodNamedNew && scanner.IsIdentifierText(name, core.LanguageVariantStandard) { return b.f.NewIdentifier(name) @@ -2098,7 +2098,9 @@ func (b *nodeBuilderImpl) createPropertyNameNodeForIdentifierOrLiteral(name stri return b.f.NewNumericLiteral(name) } result := b.f.NewStringLiteral(name) - // !!! TODO: set singleQuote + if singleQuote { + result.AsStringLiteral().TokenFlags |= ast.TokenFlagsSingleQuote + } return result } @@ -2119,10 +2121,8 @@ func (b *nodeBuilderImpl) isStringNamed(d *ast.Declaration) bool { } func (b *nodeBuilderImpl) isSingleQuotedStringNamed(d *ast.Declaration) bool { - return false // !!! - // TODO: actually support single-quote-style-maintenance - // name := ast.GetNameOfDeclaration(d) - // return name != nil && ast.IsStringLiteral(name) && (name.AsStringLiteral().SingleQuote || !nodeIsSynthesized(name) && startsWith(getTextOfNode(name, false /*includeTrivia*/), "'")) + name := ast.GetNameOfDeclaration(d) + return name != nil && ast.IsStringLiteral(name) && name.AsStringLiteral().TokenFlags&ast.TokenFlagsSingleQuote != 0 } func (b *nodeBuilderImpl) getPropertyNameNodeForSymbol(symbol *ast.Symbol) *ast.Node { @@ -2164,8 +2164,11 @@ func (b *nodeBuilderImpl) getPropertyNameNodeForSymbolFromNameType(symbol *ast.S name = nameType.AsLiteralType().value.(string) } if !scanner.IsIdentifierText(name, core.LanguageVariantStandard) && (stringNamed || !isNumericLiteralName(name)) { - // !!! TODO: set singleQuote - return b.f.NewStringLiteral(name) + node := b.f.NewStringLiteral(name) + if singleQuote { + node.AsStringLiteral().TokenFlags |= ast.TokenFlagsSingleQuote + } + return node } if isNumericLiteralName(name) && name[0] == '-' { return b.f.NewComputedPropertyName(b.f.NewPrefixUnaryExpression(ast.KindMinusToken, b.f.NewNumericLiteral(name[1:]))) @@ -2881,9 +2884,9 @@ func (b *nodeBuilderImpl) typeToTypeNode(t *Type) *ast.TypeNode { if ast.IsImportTypeNode(parentName) { parentName.AsImportTypeNode().IsTypeOf = true // mutably update, node is freshly manufactured anyhow - return b.f.NewIndexedAccessTypeNode(parentName, b.f.NewLiteralTypeNode(b.f.NewStringLiteral(memberName))) + return b.f.NewIndexedAccessTypeNode(parentName, b.f.NewLiteralTypeNode(b.newStringLiteral(memberName))) } else if ast.IsTypeReferenceNode(parentName) { - return b.f.NewIndexedAccessTypeNode(b.f.NewTypeQueryNode(parentName.AsTypeReferenceNode().TypeName, nil), b.f.NewLiteralTypeNode(b.f.NewStringLiteral(memberName))) + return b.f.NewIndexedAccessTypeNode(b.f.NewTypeQueryNode(parentName.AsTypeReferenceNode().TypeName, nil), b.f.NewLiteralTypeNode(b.newStringLiteral(memberName))) } else { panic("Unhandled type node kind returned from `symbolToTypeNode`.") } @@ -2892,7 +2895,7 @@ func (b *nodeBuilderImpl) typeToTypeNode(t *Type) *ast.TypeNode { } if t.flags&TypeFlagsStringLiteral != 0 { b.ctx.approximateLength += len(t.AsLiteralType().value.(string)) + 2 - lit := b.f.NewStringLiteral(t.AsLiteralType().value.(string) /*, b.flags&nodebuilder.FlagsUseSingleQuotesForStringLiteralType != 0*/) + lit := b.newStringLiteral(t.AsLiteralType().value.(string)) b.e.AddEmitFlags(lit, printer.EFNoAsciiEscaping) return b.f.NewLiteralTypeNode(lit) } @@ -3105,6 +3108,14 @@ func (b *nodeBuilderImpl) typeToTypeNode(t *Type) *ast.TypeNode { panic("Should be unreachable.") } +func (b *nodeBuilderImpl) newStringLiteral(text string) *ast.Node { + node := b.f.NewStringLiteral(text) + if b.ctx.flags&nodebuilder.FlagsUseSingleQuotesForStringLiteralType != 0 { + node.AsStringLiteral().TokenFlags |= ast.TokenFlagsSingleQuote + } + return node +} + // Direct serialization core functions for types, type aliases, and symbols func (t *TypeAlias) ToTypeReferenceNode(b *nodeBuilderImpl) *ast.Node { diff --git a/internal/fourslash/tests/autoImportQuoteDetection_test.go b/internal/fourslash/tests/autoImportQuoteDetection_test.go new file mode 100644 index 0000000000..a9a6ade067 --- /dev/null +++ b/internal/fourslash/tests/autoImportQuoteDetection_test.go @@ -0,0 +1,33 @@ +package fourslash_test + +import ( + "testing" + + "github.com/microsoft/typescript-go/internal/fourslash" + . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" + "github.com/microsoft/typescript-go/internal/testutil" +) + +func TestAutoImportQuoteDetection(t *testing.T) { + t.Parallel() + + defer testutil.RecoverAndFail(t, "Panic on fourslash test") + const content = `// @module: esnext +// @Filename: /a.ts +export const foo = 0; +// @Filename: /b.ts +import {} from 'node:path'; + +fo/**/` + f := fourslash.NewFourslash(t, nil /*capabilities*/, content) + f.GoToMarker(t, "") + f.VerifyApplyCodeActionFromCompletion(t, PtrTo(""), &fourslash.ApplyCodeActionFromCompletionOptions{ + Name: "foo", + Source: "./a", + Description: "Add import from \"./a\"", + NewFileContent: PtrTo(`import {} from 'node:path'; +import { foo } from './a'; + +fo`), + }) +} diff --git a/internal/ls/autoimportfixes.go b/internal/ls/autoimportfixes.go index 6587db9ec9..8e554880b4 100644 --- a/internal/ls/autoimportfixes.go +++ b/internal/ls/autoimportfixes.go @@ -265,13 +265,16 @@ func (ct *changeTracker) makeImport(defaultImport *ast.IdentifierNode, namedImpo func (ct *changeTracker) getNewImports( moduleSpecifier string, - // quotePreference quotePreference, // !!! quotePreference + quotePreference quotePreference, defaultImport *Import, namedImports []*Import, namespaceLikeImport *Import, // { importKind: ImportKind.CommonJS | ImportKind.Namespace; } compilerOptions *core.CompilerOptions, ) []*ast.Statement { moduleSpecifierStringLiteral := ct.NodeFactory.NewStringLiteral(moduleSpecifier) + if quotePreference == quotePreferenceSingle { + moduleSpecifierStringLiteral.AsStringLiteral().TokenFlags |= ast.TokenFlagsSingleQuote + } var statements []*ast.Statement // []AnyImportSyntax if defaultImport != nil || len(namedImports) > 0 { // `verbatimModuleSyntax` should prefer top-level `import type` - diff --git a/internal/ls/autoimports.go b/internal/ls/autoimports.go index c0dc14a887..1e586cc070 100644 --- a/internal/ls/autoimports.go +++ b/internal/ls/autoimports.go @@ -1412,7 +1412,7 @@ func (l *LanguageService) codeActionForFixWorker( if fix.useRequire { declarations = changeTracker.getNewRequires(fix.moduleSpecifier, defaultImport, namedImports, namespaceLikeImport, l.GetProgram().Options()) } else { - declarations = changeTracker.getNewImports(fix.moduleSpecifier, defaultImport, namedImports, namespaceLikeImport, l.GetProgram().Options()) + declarations = changeTracker.getNewImports(fix.moduleSpecifier, getQuotePreference(sourceFile, l.UserPreferences()), defaultImport, namedImports, namespaceLikeImport, l.GetProgram().Options()) } changeTracker.insertImports( diff --git a/internal/ls/utilities.go b/internal/ls/utilities.go index a51d0a2fe1..95659b8a60 100644 --- a/internal/ls/utilities.go +++ b/internal/ls/utilities.go @@ -468,8 +468,27 @@ const ( quotePreferenceDouble ) -// !!! -func getQuotePreference(file *ast.SourceFile, preferences *UserPreferences) quotePreference { +func quotePreferenceFromString(str *ast.StringLiteral) quotePreference { + if str.TokenFlags&ast.TokenFlagsSingleQuote != 0 { + return quotePreferenceSingle + } + return quotePreferenceDouble +} + +func getQuotePreference(sourceFile *ast.SourceFile, preferences *UserPreferences) quotePreference { + if preferences.QuotePreference != "" && preferences.QuotePreference != "auto" { + if preferences.QuotePreference == "single" { + return quotePreferenceSingle + } + return quotePreferenceDouble + } + // ignore synthetic import added when importHelpers: true + firstModuleSpecifier := core.Find(sourceFile.Imports(), func(n *ast.Node) bool { + return ast.IsStringLiteral(n) && !ast.NodeIsSynthesized(n.Parent) + }) + if firstModuleSpecifier != nil { + return quotePreferenceFromString(firstModuleSpecifier.AsStringLiteral()) + } return quotePreferenceDouble } diff --git a/internal/scanner/scanner.go b/internal/scanner/scanner.go index 58bb1d81c8..707be30d89 100644 --- a/internal/scanner/scanner.go +++ b/internal/scanner/scanner.go @@ -1455,6 +1455,9 @@ func (s *Scanner) scanIdentifierParts() string { func (s *Scanner) scanString(jsxAttributeString bool) string { quote := s.char() + if quote == '\'' { + s.tokenFlags |= ast.TokenFlagsSingleQuote + } s.pos++ // Fast path for simple strings without escape sequences. strLen := strings.IndexRune(s.text[s.pos:], quote) diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.js b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.js index cf17422ad6..f429d2e37c 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.js @@ -12,5 +12,5 @@ exports.f = ((arg) => arg)({ '0': 0 }); // Original prop uses string syntax //// [declarationEmitMappedTypePropertyFromNumericStringKey.d.ts] export declare const f: { - "0": string | number; + '0': string | number; }; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.js.diff deleted file mode 100644 index 3d865db89d..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.js.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.declarationEmitMappedTypePropertyFromNumericStringKey.js -+++ new.declarationEmitMappedTypePropertyFromNumericStringKey.js -@@= skipped -11, +11 lines =@@ - - //// [declarationEmitMappedTypePropertyFromNumericStringKey.d.ts] - export declare const f: { -- '0': string | number; -+ "0": string | number; - }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.types b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.types index 84bf1f59bd..04705c37ee 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.types +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.types @@ -2,13 +2,13 @@ === declarationEmitMappedTypePropertyFromNumericStringKey.ts === export const f = ((arg: {[K in keyof T]: T[K] | string}) => arg)({'0': 0}); // Original prop uses string syntax ->f : { "0": string | number; } ->((arg: {[K in keyof T]: T[K] | string}) => arg)({'0': 0}) : { "0": string | number; } +>f : { '0': string | number; } +>((arg: {[K in keyof T]: T[K] | string}) => arg)({'0': 0}) : { '0': string | number; } >((arg: {[K in keyof T]: T[K] | string}) => arg) : (arg: { [K in keyof T]: string | T[K]; }) => { [K in keyof T]: string | T[K]; } >(arg: {[K in keyof T]: T[K] | string}) => arg : (arg: { [K in keyof T]: string | T[K]; }) => { [K in keyof T]: string | T[K]; } >arg : { [K in keyof T]: string | T[K]; } >arg : { [K in keyof T]: string | T[K]; } ->{'0': 0} : { "0": number; } +>{'0': 0} : { '0': number; } >'0' : number >0 : 0 diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.types.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.types.diff index 0023a8b4b6..a26d381f10 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.types.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePropertyFromNumericStringKey.types.diff @@ -1,22 +1,13 @@ --- old.declarationEmitMappedTypePropertyFromNumericStringKey.types +++ new.declarationEmitMappedTypePropertyFromNumericStringKey.types -@@= skipped -1, +1 lines =@@ - - === declarationEmitMappedTypePropertyFromNumericStringKey.ts === +@@= skipped -3, +3 lines =@@ export const f = ((arg: {[K in keyof T]: T[K] | string}) => arg)({'0': 0}); // Original prop uses string syntax -->f : { '0': string | number; } -->((arg: {[K in keyof T]: T[K] | string}) => arg)({'0': 0}) : { '0': string | number; } + >f : { '0': string | number; } + >((arg: {[K in keyof T]: T[K] | string}) => arg)({'0': 0}) : { '0': string | number; } ->((arg: {[K in keyof T]: T[K] | string}) => arg) : (arg: { [K in keyof T]: T[K] | string; }) => { [K in keyof T]: string | T[K]; } ->(arg: {[K in keyof T]: T[K] | string}) => arg : (arg: { [K in keyof T]: T[K] | string; }) => { [K in keyof T]: string | T[K]; } -->arg : { [K in keyof T]: string | T[K]; } -->arg : { [K in keyof T]: string | T[K]; } -->{'0': 0} : { '0': number; } -+>f : { "0": string | number; } -+>((arg: {[K in keyof T]: T[K] | string}) => arg)({'0': 0}) : { "0": string | number; } +>((arg: {[K in keyof T]: T[K] | string}) => arg) : (arg: { [K in keyof T]: string | T[K]; }) => { [K in keyof T]: string | T[K]; } +>(arg: {[K in keyof T]: T[K] | string}) => arg : (arg: { [K in keyof T]: string | T[K]; }) => { [K in keyof T]: string | T[K]; } -+>arg : { [K in keyof T]: string | T[K]; } -+>arg : { [K in keyof T]: string | T[K]; } -+>{'0': 0} : { "0": number; } - >'0' : number - >0 : 0 + >arg : { [K in keyof T]: string | T[K]; } + >arg : { [K in keyof T]: string | T[K]; } + >{'0': 0} : { '0': number; } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.js b/testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.js index fcc80bef33..60e41c7655 100644 --- a/testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.js +++ b/testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.js @@ -52,7 +52,7 @@ export declare enum MouseButton { NO_BUTTON = 0 } export declare const DOMMouseButton: { - "-1": MouseButton; + '-1': MouseButton; "0": MouseButton; "1": MouseButton; "2": MouseButton; diff --git a/testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.js.diff b/testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.js.diff deleted file mode 100644 index 99e39a42d8..0000000000 --- a/testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.js.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.enumKeysQuotedAsObjectPropertiesInDeclarationEmit.js -+++ new.enumKeysQuotedAsObjectPropertiesInDeclarationEmit.js -@@= skipped -51, +51 lines =@@ - NO_BUTTON = 0 - } - export declare const DOMMouseButton: { -- '-1': MouseButton; -+ "-1": MouseButton; - "0": MouseButton; - "1": MouseButton; - "2": MouseButton; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.types b/testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.types index 9071fcc7d4..336591545f 100644 --- a/testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.types +++ b/testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.types @@ -30,8 +30,8 @@ export enum MouseButton { } export const DOMMouseButton = { ->DOMMouseButton : { "-1": MouseButton; "0": MouseButton; "1": MouseButton; "2": MouseButton; "3": MouseButton; "4": MouseButton; } ->{ '-1': MouseButton.NO_BUTTON, "0": MouseButton.LEFT_BUTTON, "1": MouseButton.MIDDLE_BUTTON, "2": MouseButton.RIGHT_BUTTON, "3": MouseButton.XBUTTON1_BUTTON, "4": MouseButton.XBUTTON2_BUTTON,} : { "-1": MouseButton; "0": MouseButton; "1": MouseButton; "2": MouseButton; "3": MouseButton; "4": MouseButton; } +>DOMMouseButton : { '-1': MouseButton; "0": MouseButton; "1": MouseButton; "2": MouseButton; "3": MouseButton; "4": MouseButton; } +>{ '-1': MouseButton.NO_BUTTON, "0": MouseButton.LEFT_BUTTON, "1": MouseButton.MIDDLE_BUTTON, "2": MouseButton.RIGHT_BUTTON, "3": MouseButton.XBUTTON1_BUTTON, "4": MouseButton.XBUTTON2_BUTTON,} : { '-1': MouseButton; "0": MouseButton; "1": MouseButton; "2": MouseButton; "3": MouseButton; "4": MouseButton; } '-1': MouseButton.NO_BUTTON, >'-1' : MouseButton diff --git a/testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.types.diff b/testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.types.diff deleted file mode 100644 index 7eca3bcfab..0000000000 --- a/testdata/baselines/reference/submodule/compiler/enumKeysQuotedAsObjectPropertiesInDeclarationEmit.types.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.enumKeysQuotedAsObjectPropertiesInDeclarationEmit.types -+++ new.enumKeysQuotedAsObjectPropertiesInDeclarationEmit.types -@@= skipped -29, +29 lines =@@ - } - - export const DOMMouseButton = { -->DOMMouseButton : { '-1': MouseButton; "0": MouseButton; "1": MouseButton; "2": MouseButton; "3": MouseButton; "4": MouseButton; } -->{ '-1': MouseButton.NO_BUTTON, "0": MouseButton.LEFT_BUTTON, "1": MouseButton.MIDDLE_BUTTON, "2": MouseButton.RIGHT_BUTTON, "3": MouseButton.XBUTTON1_BUTTON, "4": MouseButton.XBUTTON2_BUTTON,} : { '-1': MouseButton; "0": MouseButton; "1": MouseButton; "2": MouseButton; "3": MouseButton; "4": MouseButton; } -+>DOMMouseButton : { "-1": MouseButton; "0": MouseButton; "1": MouseButton; "2": MouseButton; "3": MouseButton; "4": MouseButton; } -+>{ '-1': MouseButton.NO_BUTTON, "0": MouseButton.LEFT_BUTTON, "1": MouseButton.MIDDLE_BUTTON, "2": MouseButton.RIGHT_BUTTON, "3": MouseButton.XBUTTON1_BUTTON, "4": MouseButton.XBUTTON2_BUTTON,} : { "-1": MouseButton; "0": MouseButton; "1": MouseButton; "2": MouseButton; "3": MouseButton; "4": MouseButton; } - - '-1': MouseButton.NO_BUTTON, - >'-1' : MouseButton \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportAssignmentExpressionIsExpressionNode.errors.txt b/testdata/baselines/reference/submodule/compiler/exportAssignmentExpressionIsExpressionNode.errors.txt index 4d54d16ef5..7a53980c7f 100644 --- a/testdata/baselines/reference/submodule/compiler/exportAssignmentExpressionIsExpressionNode.errors.txt +++ b/testdata/baselines/reference/submodule/compiler/exportAssignmentExpressionIsExpressionNode.errors.txt @@ -1,6 +1,6 @@ -/index.ts(7,7): error TS2322: Type '{ default: { configs: { "stage-0": PluginConfig; }; }; configs: { "stage-0": PluginConfig; }; }' is not assignable to type 'Plugin'. +/index.ts(7,7): error TS2322: Type '{ default: { configs: { 'stage-0': PluginConfig; }; }; configs: { 'stage-0': PluginConfig; }; }' is not assignable to type 'Plugin'. Types of property 'configs' are incompatible. - Type '{ "stage-0": PluginConfig; }' is not assignable to type 'Record'. + Type '{ 'stage-0': PluginConfig; }' is not assignable to type 'Record'. Property ''stage-0'' is incompatible with index signature. Type 'PluginConfig' is not assignable to type '{ parser: string | null; }'. Types of property 'parser' are incompatible. @@ -43,9 +43,9 @@ const p: Plugin = pluginImportX; ~ -!!! error TS2322: Type '{ default: { configs: { "stage-0": PluginConfig; }; }; configs: { "stage-0": PluginConfig; }; }' is not assignable to type 'Plugin'. +!!! error TS2322: Type '{ default: { configs: { 'stage-0': PluginConfig; }; }; configs: { 'stage-0': PluginConfig; }; }' is not assignable to type 'Plugin'. !!! error TS2322: Types of property 'configs' are incompatible. -!!! error TS2322: Type '{ "stage-0": PluginConfig; }' is not assignable to type 'Record'. +!!! error TS2322: Type '{ 'stage-0': PluginConfig; }' is not assignable to type 'Record'. !!! error TS2322: Property ''stage-0'' is incompatible with index signature. !!! error TS2322: Type 'PluginConfig' is not assignable to type '{ parser: string | null; }'. !!! error TS2322: Types of property 'parser' are incompatible. diff --git a/testdata/baselines/reference/submodule/compiler/exportAssignmentExpressionIsExpressionNode.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/exportAssignmentExpressionIsExpressionNode.errors.txt.diff deleted file mode 100644 index aa4d5bb0b8..0000000000 --- a/testdata/baselines/reference/submodule/compiler/exportAssignmentExpressionIsExpressionNode.errors.txt.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.exportAssignmentExpressionIsExpressionNode.errors.txt -+++ new.exportAssignmentExpressionIsExpressionNode.errors.txt -@@= skipped -0, +0 lines =@@ --/index.ts(7,7): error TS2322: Type '{ default: { configs: { 'stage-0': PluginConfig; }; }; configs: { 'stage-0': PluginConfig; }; }' is not assignable to type 'Plugin'. -+/index.ts(7,7): error TS2322: Type '{ default: { configs: { "stage-0": PluginConfig; }; }; configs: { "stage-0": PluginConfig; }; }' is not assignable to type 'Plugin'. - Types of property 'configs' are incompatible. -- Type '{ 'stage-0': PluginConfig; }' is not assignable to type 'Record'. -+ Type '{ "stage-0": PluginConfig; }' is not assignable to type 'Record'. - Property ''stage-0'' is incompatible with index signature. - Type 'PluginConfig' is not assignable to type '{ parser: string | null; }'. - Types of property 'parser' are incompatible. -@@= skipped -42, +42 lines =@@ - - const p: Plugin = pluginImportX; - ~ --!!! error TS2322: Type '{ default: { configs: { 'stage-0': PluginConfig; }; }; configs: { 'stage-0': PluginConfig; }; }' is not assignable to type 'Plugin'. -+!!! error TS2322: Type '{ default: { configs: { "stage-0": PluginConfig; }; }; configs: { "stage-0": PluginConfig; }; }' is not assignable to type 'Plugin'. - !!! error TS2322: Types of property 'configs' are incompatible. --!!! error TS2322: Type '{ 'stage-0': PluginConfig; }' is not assignable to type 'Record'. -+!!! error TS2322: Type '{ "stage-0": PluginConfig; }' is not assignable to type 'Record'. - !!! error TS2322: Property ''stage-0'' is incompatible with index signature. - !!! error TS2322: Type 'PluginConfig' is not assignable to type '{ parser: string | null; }'. - !!! error TS2322: Types of property 'parser' are incompatible. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleExportsTypeNoExcessPropertyCheckFromContainedLiteral.types b/testdata/baselines/reference/submodule/compiler/moduleExportsTypeNoExcessPropertyCheckFromContainedLiteral.types index 6d0c234077..20c96e38f6 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleExportsTypeNoExcessPropertyCheckFromContainedLiteral.types +++ b/testdata/baselines/reference/submodule/compiler/moduleExportsTypeNoExcessPropertyCheckFromContainedLiteral.types @@ -2,8 +2,8 @@ === eslint.config.js === const eslintReact = require('./eslint-plugin-react.js'); ->eslintReact : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; } ->require('./eslint-plugin-react.js') : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; } +>eslintReact : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } +>require('./eslint-plugin-react.js') : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } >require : any >'./eslint-plugin-react.js' : "./eslint-plugin-react.js" @@ -18,7 +18,7 @@ tseslint.config(eslintReact) >tseslint.config : (...configs: import("typescript-eslint").Config[]) => void >tseslint : { config: (...configs: import("typescript-eslint").Config[]) => void; } >config : (...configs: import("typescript-eslint").Config[]) => void ->eslintReact : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; } +>eslintReact : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } === eslint-plugin-react.js === const deprecatedRules = { @@ -31,8 +31,8 @@ const deprecatedRules = { } const allRules = { ->allRules : { "no-unsafe": boolean; } ->{ 'no-unsafe': true} : { "no-unsafe": boolean; } +>allRules : { 'no-unsafe': boolean; } +>{ 'no-unsafe': true} : { 'no-unsafe': boolean; } 'no-unsafe': true >'no-unsafe' : boolean @@ -40,26 +40,26 @@ const allRules = { } module.exports = { ->module.exports = { plugins: { react: { deprecatedRules, rules: allRules, }, },} : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; } ->module.exports : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; } ->module : { "export=": { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; }; } ->exports : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; } ->{ plugins: { react: { deprecatedRules, rules: allRules, }, },} : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; } +>module.exports = { plugins: { react: { deprecatedRules, rules: allRules, }, },} : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } +>module.exports : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } +>module : { "export=": { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; }; } +>exports : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } +>{ plugins: { react: { deprecatedRules, rules: allRules, }, },} : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } plugins: { ->plugins : { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; } ->{ react: { deprecatedRules, rules: allRules, }, } : { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; } +>plugins : { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; } +>{ react: { deprecatedRules, rules: allRules, }, } : { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; } react: { ->react : { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; } ->{ deprecatedRules, rules: allRules, } : { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; } +>react : { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; } +>{ deprecatedRules, rules: allRules, } : { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; } deprecatedRules, >deprecatedRules : { "jsx-sort-default-props": boolean; } rules: allRules, ->rules : { "no-unsafe": boolean; } ->allRules : { "no-unsafe": boolean; } +>rules : { 'no-unsafe': boolean; } +>allRules : { 'no-unsafe': boolean; } }, }, diff --git a/testdata/baselines/reference/submodule/compiler/noImplicitAnyStringIndexerOnObject.types b/testdata/baselines/reference/submodule/compiler/noImplicitAnyStringIndexerOnObject.types index c0ccc1bce4..72f6540b64 100644 --- a/testdata/baselines/reference/submodule/compiler/noImplicitAnyStringIndexerOnObject.types +++ b/testdata/baselines/reference/submodule/compiler/noImplicitAnyStringIndexerOnObject.types @@ -10,7 +10,7 @@ var a = {}["hello"]; var b: string = { '': 'foo' }['']; >b : string >{ '': 'foo' }[''] : string ->{ '': 'foo' } : { "": string; } +>{ '': 'foo' } : { '': string; } >'' : string >'foo' : "foo" >'' : "" diff --git a/testdata/baselines/reference/submodule/compiler/noImplicitAnyStringIndexerOnObject.types.diff b/testdata/baselines/reference/submodule/compiler/noImplicitAnyStringIndexerOnObject.types.diff deleted file mode 100644 index 53719baf04..0000000000 --- a/testdata/baselines/reference/submodule/compiler/noImplicitAnyStringIndexerOnObject.types.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.noImplicitAnyStringIndexerOnObject.types -+++ new.noImplicitAnyStringIndexerOnObject.types -@@= skipped -9, +9 lines =@@ - var b: string = { '': 'foo' }['']; - >b : string - >{ '': 'foo' }[''] : string -->{ '': 'foo' } : { '': string; } -+>{ '': 'foo' } : { "": string; } - >'' : string - >'foo' : "foo" - >'' : "" \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/objectLiteralExcessProperties.types b/testdata/baselines/reference/submodule/compiler/objectLiteralExcessProperties.types index 29ba3f1471..b43aa5751a 100644 --- a/testdata/baselines/reference/submodule/compiler/objectLiteralExcessProperties.types +++ b/testdata/baselines/reference/submodule/compiler/objectLiteralExcessProperties.types @@ -86,7 +86,7 @@ interface Indexed { var b10: Indexed = { 0: { }, '1': { } }; // ok >b10 : Indexed ->{ 0: { }, '1': { } } : { 0: {}; "1": {}; } +>{ 0: { }, '1': { } } : { 0: {}; '1': {}; } >0 : {} >{ } : {} >'1' : {} diff --git a/testdata/baselines/reference/submodule/compiler/objectLiteralExcessProperties.types.diff b/testdata/baselines/reference/submodule/compiler/objectLiteralExcessProperties.types.diff deleted file mode 100644 index d6f08e5826..0000000000 --- a/testdata/baselines/reference/submodule/compiler/objectLiteralExcessProperties.types.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.objectLiteralExcessProperties.types -+++ new.objectLiteralExcessProperties.types -@@= skipped -85, +85 lines =@@ - - var b10: Indexed = { 0: { }, '1': { } }; // ok - >b10 : Indexed -->{ 0: { }, '1': { } } : { 0: {}; '1': {}; } -+>{ 0: { }, '1': { } } : { 0: {}; "1": {}; } - >0 : {} - >{ } : {} - >'1' : {} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/ramdaToolsNoInfinite2.types b/testdata/baselines/reference/submodule/compiler/ramdaToolsNoInfinite2.types index 0bc7f43feb..987b07e6bc 100644 --- a/testdata/baselines/reference/submodule/compiler/ramdaToolsNoInfinite2.types +++ b/testdata/baselines/reference/submodule/compiler/ramdaToolsNoInfinite2.types @@ -425,7 +425,7 @@ declare module "Number/_Internal" { >Numbers : Numbers 'string': { ->'string' : { all: "-1" | "-10" | "-11" | "-12" | "-13" | "-14" | "-15" | "-16" | "-17" | "-18" | "-19" | "-2" | "-20" | "-21" | "-22" | "-23" | "-24" | "-25" | "-26" | "-27" | "-28" | "-29" | "-3" | "-30" | "-31" | "-32" | "-33" | "-34" | "-35" | "-36" | "-37" | "-38" | "-39" | "-4" | "-40" | "-5" | "-6" | "-7" | "-8" | "-9" | "0" | "1" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "2" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "3" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "4" | "40" | "5" | "6" | "7" | "8" | "9"; "+": "1" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "2" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "3" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "4" | "40" | "5" | "6" | "7" | "8" | "9"; "-": "-1" | "-10" | "-11" | "-12" | "-13" | "-14" | "-15" | "-16" | "-17" | "-18" | "-19" | "-2" | "-20" | "-21" | "-22" | "-23" | "-24" | "-25" | "-26" | "-27" | "-28" | "-29" | "-3" | "-30" | "-31" | "-32" | "-33" | "-34" | "-35" | "-36" | "-37" | "-38" | "-39" | "-4" | "-40" | "-5" | "-6" | "-7" | "-8" | "-9"; "0": "0"; } +>'string' : { all: "-1" | "-10" | "-11" | "-12" | "-13" | "-14" | "-15" | "-16" | "-17" | "-18" | "-19" | "-2" | "-20" | "-21" | "-22" | "-23" | "-24" | "-25" | "-26" | "-27" | "-28" | "-29" | "-3" | "-30" | "-31" | "-32" | "-33" | "-34" | "-35" | "-36" | "-37" | "-38" | "-39" | "-4" | "-40" | "-5" | "-6" | "-7" | "-8" | "-9" | "0" | "1" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "2" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "3" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "4" | "40" | "5" | "6" | "7" | "8" | "9"; '+': "1" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "2" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "3" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "4" | "40" | "5" | "6" | "7" | "8" | "9"; '-': "-1" | "-10" | "-11" | "-12" | "-13" | "-14" | "-15" | "-16" | "-17" | "-18" | "-19" | "-2" | "-20" | "-21" | "-22" | "-23" | "-24" | "-25" | "-26" | "-27" | "-28" | "-29" | "-3" | "-30" | "-31" | "-32" | "-33" | "-34" | "-35" | "-36" | "-37" | "-38" | "-39" | "-4" | "-40" | "-5" | "-6" | "-7" | "-8" | "-9"; '0': "0"; } 'all': Format; >'all' : "-1" | "-10" | "-11" | "-12" | "-13" | "-14" | "-15" | "-16" | "-17" | "-18" | "-19" | "-2" | "-20" | "-21" | "-22" | "-23" | "-24" | "-25" | "-26" | "-27" | "-28" | "-29" | "-3" | "-30" | "-31" | "-32" | "-33" | "-34" | "-35" | "-36" | "-37" | "-38" | "-39" | "-4" | "-40" | "-5" | "-6" | "-7" | "-8" | "-9" | "0" | "1" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "2" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "3" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "4" | "40" | "5" | "6" | "7" | "8" | "9" @@ -441,7 +441,7 @@ declare module "Number/_Internal" { }; 'number': { ->'number' : { all: -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 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; "+": 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; "-": -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1; "0": 0; } +>'number' : { all: -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 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; '+': 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; '-': -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1; '0': 0; } 'all': Format; >'all' : -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 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 diff --git a/testdata/baselines/reference/submodule/compiler/ramdaToolsNoInfinite2.types.diff b/testdata/baselines/reference/submodule/compiler/ramdaToolsNoInfinite2.types.diff index fad96e62f9..48b45e143c 100644 --- a/testdata/baselines/reference/submodule/compiler/ramdaToolsNoInfinite2.types.diff +++ b/testdata/baselines/reference/submodule/compiler/ramdaToolsNoInfinite2.types.diff @@ -5,7 +5,7 @@ 'string': { ->'string' : { all: Format; '+': Format; '-': Format; '0': Format; } -+>'string' : { all: "-1" | "-10" | "-11" | "-12" | "-13" | "-14" | "-15" | "-16" | "-17" | "-18" | "-19" | "-2" | "-20" | "-21" | "-22" | "-23" | "-24" | "-25" | "-26" | "-27" | "-28" | "-29" | "-3" | "-30" | "-31" | "-32" | "-33" | "-34" | "-35" | "-36" | "-37" | "-38" | "-39" | "-4" | "-40" | "-5" | "-6" | "-7" | "-8" | "-9" | "0" | "1" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "2" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "3" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "4" | "40" | "5" | "6" | "7" | "8" | "9"; "+": "1" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "2" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "3" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "4" | "40" | "5" | "6" | "7" | "8" | "9"; "-": "-1" | "-10" | "-11" | "-12" | "-13" | "-14" | "-15" | "-16" | "-17" | "-18" | "-19" | "-2" | "-20" | "-21" | "-22" | "-23" | "-24" | "-25" | "-26" | "-27" | "-28" | "-29" | "-3" | "-30" | "-31" | "-32" | "-33" | "-34" | "-35" | "-36" | "-37" | "-38" | "-39" | "-4" | "-40" | "-5" | "-6" | "-7" | "-8" | "-9"; "0": "0"; } ++>'string' : { all: "-1" | "-10" | "-11" | "-12" | "-13" | "-14" | "-15" | "-16" | "-17" | "-18" | "-19" | "-2" | "-20" | "-21" | "-22" | "-23" | "-24" | "-25" | "-26" | "-27" | "-28" | "-29" | "-3" | "-30" | "-31" | "-32" | "-33" | "-34" | "-35" | "-36" | "-37" | "-38" | "-39" | "-4" | "-40" | "-5" | "-6" | "-7" | "-8" | "-9" | "0" | "1" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "2" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "3" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "4" | "40" | "5" | "6" | "7" | "8" | "9"; '+': "1" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "2" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "3" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "4" | "40" | "5" | "6" | "7" | "8" | "9"; '-': "-1" | "-10" | "-11" | "-12" | "-13" | "-14" | "-15" | "-16" | "-17" | "-18" | "-19" | "-2" | "-20" | "-21" | "-22" | "-23" | "-24" | "-25" | "-26" | "-27" | "-28" | "-29" | "-3" | "-30" | "-31" | "-32" | "-33" | "-34" | "-35" | "-36" | "-37" | "-38" | "-39" | "-4" | "-40" | "-5" | "-6" | "-7" | "-8" | "-9"; '0': "0"; } 'all': Format; >'all' : "-1" | "-10" | "-11" | "-12" | "-13" | "-14" | "-15" | "-16" | "-17" | "-18" | "-19" | "-2" | "-20" | "-21" | "-22" | "-23" | "-24" | "-25" | "-26" | "-27" | "-28" | "-29" | "-3" | "-30" | "-31" | "-32" | "-33" | "-34" | "-35" | "-36" | "-37" | "-38" | "-39" | "-4" | "-40" | "-5" | "-6" | "-7" | "-8" | "-9" | "0" | "1" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "2" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "3" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "4" | "40" | "5" | "6" | "7" | "8" | "9" @@ -14,7 +14,7 @@ }; 'number': { ->'number' : { all: Format; '+': Format; '-': Format; '0': Format; } -+>'number' : { all: -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 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; "+": 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; "-": -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1; "0": 0; } ++>'number' : { all: -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 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; '+': 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; '-': -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1; '0': 0; } 'all': Format; >'all' : -40 | -39 | -38 | -37 | -36 | -35 | -34 | -33 | -32 | -31 | -30 | -29 | -28 | -27 | -26 | -25 | -24 | -23 | -22 | -21 | -20 | -19 | -18 | -17 | -16 | -15 | -14 | -13 | -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 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 \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/stringLiteralObjectLiteralDeclaration1.js b/testdata/baselines/reference/submodule/compiler/stringLiteralObjectLiteralDeclaration1.js index e639d7e8e2..bdbf5554d0 100644 --- a/testdata/baselines/reference/submodule/compiler/stringLiteralObjectLiteralDeclaration1.js +++ b/testdata/baselines/reference/submodule/compiler/stringLiteralObjectLiteralDeclaration1.js @@ -16,6 +16,6 @@ var m1; //// [stringLiteralObjectLiteralDeclaration1.d.ts] declare namespace m1 { var n: { - "foo bar": number; + 'foo bar': number; }; } diff --git a/testdata/baselines/reference/submodule/compiler/stringLiteralObjectLiteralDeclaration1.js.diff b/testdata/baselines/reference/submodule/compiler/stringLiteralObjectLiteralDeclaration1.js.diff deleted file mode 100644 index 1bfc073b54..0000000000 --- a/testdata/baselines/reference/submodule/compiler/stringLiteralObjectLiteralDeclaration1.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.stringLiteralObjectLiteralDeclaration1.js -+++ new.stringLiteralObjectLiteralDeclaration1.js -@@= skipped -15, +15 lines =@@ - //// [stringLiteralObjectLiteralDeclaration1.d.ts] - declare namespace m1 { - var n: { -- 'foo bar': number; -+ "foo bar": number; - }; - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/stringLiteralObjectLiteralDeclaration1.types b/testdata/baselines/reference/submodule/compiler/stringLiteralObjectLiteralDeclaration1.types index 231045a792..1629571fc6 100644 --- a/testdata/baselines/reference/submodule/compiler/stringLiteralObjectLiteralDeclaration1.types +++ b/testdata/baselines/reference/submodule/compiler/stringLiteralObjectLiteralDeclaration1.types @@ -5,8 +5,8 @@ module m1 { >m1 : typeof m1 export var n = { 'foo bar': 4 }; ->n : { "foo bar": number; } ->{ 'foo bar': 4 } : { "foo bar": number; } +>n : { 'foo bar': number; } +>{ 'foo bar': 4 } : { 'foo bar': number; } >'foo bar' : number >4 : 4 } diff --git a/testdata/baselines/reference/submodule/compiler/stringLiteralObjectLiteralDeclaration1.types.diff b/testdata/baselines/reference/submodule/compiler/stringLiteralObjectLiteralDeclaration1.types.diff deleted file mode 100644 index e835ded18a..0000000000 --- a/testdata/baselines/reference/submodule/compiler/stringLiteralObjectLiteralDeclaration1.types.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.stringLiteralObjectLiteralDeclaration1.types -+++ new.stringLiteralObjectLiteralDeclaration1.types -@@= skipped -4, +4 lines =@@ - >m1 : typeof m1 - - export var n = { 'foo bar': 4 }; -->n : { 'foo bar': number; } -->{ 'foo bar': 4 } : { 'foo bar': number; } -+>n : { "foo bar": number; } -+>{ 'foo bar': 4 } : { "foo bar": number; } - >'foo bar' : number - >4 : 4 - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeOfOnTypeArg.errors.txt b/testdata/baselines/reference/submodule/compiler/typeOfOnTypeArg.errors.txt index 79f200edd5..fbb87a904a 100644 --- a/testdata/baselines/reference/submodule/compiler/typeOfOnTypeArg.errors.txt +++ b/testdata/baselines/reference/submodule/compiler/typeOfOnTypeArg.errors.txt @@ -1,4 +1,4 @@ -typeOfOnTypeArg.ts(7,6): error TS2345: Argument of type 'number' is not assignable to parameter of type '{ "": number; }'. +typeOfOnTypeArg.ts(7,6): error TS2345: Argument of type 'number' is not assignable to parameter of type '{ '': number; }'. ==== typeOfOnTypeArg.ts (1 errors) ==== @@ -10,5 +10,5 @@ typeOfOnTypeArg.ts(7,6): error TS2345: Argument of type 'number' is not assignab fill(32); ~~ -!!! error TS2345: Argument of type 'number' is not assignable to parameter of type '{ "": number; }'. +!!! error TS2345: Argument of type 'number' is not assignable to parameter of type '{ '': number; }'. \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeOfOnTypeArg.errors.txt.diff b/testdata/baselines/reference/submodule/compiler/typeOfOnTypeArg.errors.txt.diff deleted file mode 100644 index 7c7b962183..0000000000 --- a/testdata/baselines/reference/submodule/compiler/typeOfOnTypeArg.errors.txt.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.typeOfOnTypeArg.errors.txt -+++ new.typeOfOnTypeArg.errors.txt -@@= skipped -0, +0 lines =@@ --typeOfOnTypeArg.ts(7,6): error TS2345: Argument of type 'number' is not assignable to parameter of type '{ '': number; }'. -+typeOfOnTypeArg.ts(7,6): error TS2345: Argument of type 'number' is not assignable to parameter of type '{ "": number; }'. - - - ==== typeOfOnTypeArg.ts (1 errors) ==== -@@= skipped -9, +9 lines =@@ - - fill(32); - ~~ --!!! error TS2345: Argument of type 'number' is not assignable to parameter of type '{ '': number; }'. -+!!! error TS2345: Argument of type 'number' is not assignable to parameter of type '{ "": number; }'. - \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/typeOfOnTypeArg.types b/testdata/baselines/reference/submodule/compiler/typeOfOnTypeArg.types index eff7640b99..fcb9822409 100644 --- a/testdata/baselines/reference/submodule/compiler/typeOfOnTypeArg.types +++ b/testdata/baselines/reference/submodule/compiler/typeOfOnTypeArg.types @@ -2,20 +2,20 @@ === typeOfOnTypeArg.ts === var A = { '': 3 }; ->A : { "": number; } ->{ '': 3 } : { "": number; } +>A : { '': number; } +>{ '': 3 } : { '': number; } >'' : number >3 : 3 function fill(f: B) { ->fill : (f: B) => void ->A : { "": number; } +>fill : (f: B) => void +>A : { '': number; } >f : B } fill(32); >fill(32) : void ->fill : (f: B) => void +>fill : (f: B) => void >32 : 32 diff --git a/testdata/baselines/reference/submodule/compiler/typeOfOnTypeArg.types.diff b/testdata/baselines/reference/submodule/compiler/typeOfOnTypeArg.types.diff index 803c5a3a21..5a332bbb12 100644 --- a/testdata/baselines/reference/submodule/compiler/typeOfOnTypeArg.types.diff +++ b/testdata/baselines/reference/submodule/compiler/typeOfOnTypeArg.types.diff @@ -1,27 +1,18 @@ --- old.typeOfOnTypeArg.types +++ new.typeOfOnTypeArg.types -@@= skipped -1, +1 lines =@@ - - === typeOfOnTypeArg.ts === - var A = { '': 3 }; -->A : { '': number; } -->{ '': 3 } : { '': number; } -+>A : { "": number; } -+>{ '': 3 } : { "": number; } - >'' : number +@@= skipped -7, +7 lines =@@ >3 : 3 function fill(f: B) { ->fill : (f: B) => void -->A : { '': number; } -+>fill : (f: B) => void -+>A : { "": number; } ++>fill : (f: B) => void + >A : { '': number; } >f : B - } +@@= skipped -8, +8 lines =@@ fill(32); >fill(32) : void ->fill : (f: B) => void -+>fill : (f: B) => void ++>fill : (f: B) => void >32 : 32 diff --git a/testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.errors.txt b/testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.errors.txt index c57ab82b66..6c85c052e0 100644 --- a/testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.errors.txt +++ b/testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.errors.txt @@ -1,32 +1,32 @@ assignmentCompatWithObjectMembersStringNumericNames.ts(21,5): error TS2741: Property ''1'' is missing in type 'T' but required in type 'S'. assignmentCompatWithObjectMembersStringNumericNames.ts(22,5): error TS2741: Property ''1.'' is missing in type 'S' but required in type 'T'. -assignmentCompatWithObjectMembersStringNumericNames.ts(24,5): error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S'. +assignmentCompatWithObjectMembersStringNumericNames.ts(24,5): error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S'. assignmentCompatWithObjectMembersStringNumericNames.ts(26,5): error TS2741: Property ''1'' is missing in type 'T2' but required in type 'S2'. assignmentCompatWithObjectMembersStringNumericNames.ts(27,5): error TS2741: Property ''1.0'' is missing in type 'S2' but required in type 'T2'. assignmentCompatWithObjectMembersStringNumericNames.ts(28,5): error TS2741: Property ''1'' is missing in type 'T' but required in type 'S2'. -assignmentCompatWithObjectMembersStringNumericNames.ts(29,5): error TS2741: Property ''1'' is missing in type '{ "1.0": string; baz?: string; }' but required in type 'S2'. -assignmentCompatWithObjectMembersStringNumericNames.ts(30,5): error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S2'. -assignmentCompatWithObjectMembersStringNumericNames.ts(32,5): error TS2741: Property ''1.'' is missing in type '{ "1.0": string; baz?: string; }' but required in type '{ "1.": string; bar?: string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(33,5): error TS2741: Property ''1.0'' is missing in type '{ "1.": string; bar?: string; }' but required in type '{ "1.0": string; baz?: string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(34,5): error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ "1.": string; bar?: string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(35,5): error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ "1.": string; bar?: string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(36,5): error TS2741: Property ''1.'' is missing in type '{ "1.0": string; }' but required in type '{ "1.": string; bar?: string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(38,5): error TS2741: Property ''1.0'' is missing in type '{ "1": string; }' but required in type '{ "1.0": string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(39,5): error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type '{ "1": string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(42,5): error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ "1.0": string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(65,5): error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S'. -assignmentCompatWithObjectMembersStringNumericNames.ts(71,5): error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S2'. -assignmentCompatWithObjectMembersStringNumericNames.ts(73,5): error TS2741: Property ''1.'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ "1.": string; bar?: string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(74,5): error TS2741: Property '1.0' is missing in type '{ "1.": string; bar?: string; }' but required in type '{ 1: string; baz?: string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(75,5): error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ "1.": string; bar?: string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(76,5): error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ "1.": string; bar?: string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(77,5): error TS2741: Property ''1.'' is missing in type '{ "1.0": string; }' but required in type '{ "1.": string; bar?: string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(78,5): error TS2741: Property ''1.'' is missing in type '{ 1: string; }' but required in type '{ "1.": string; bar?: string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(80,5): error TS2741: Property ''1.0'' is missing in type '{ 1: string; }' but required in type '{ "1.0": string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(81,5): error TS2741: Property '1.' is missing in type '{ "1.0": string; }' but required in type '{ 1: string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(82,5): error TS2741: Property ''1.0'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ "1.0": string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(83,5): error TS2741: Property ''1.0'' is missing in type 'T2' but required in type '{ "1.0": string; }'. -assignmentCompatWithObjectMembersStringNumericNames.ts(84,5): error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ "1.0": string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(29,5): error TS2741: Property ''1'' is missing in type '{ '1.0': string; baz?: string; }' but required in type 'S2'. +assignmentCompatWithObjectMembersStringNumericNames.ts(30,5): error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S2'. +assignmentCompatWithObjectMembersStringNumericNames.ts(32,5): error TS2741: Property ''1.'' is missing in type '{ '1.0': string; baz?: string; }' but required in type '{ '1.': string; bar?: string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(33,5): error TS2741: Property ''1.0'' is missing in type '{ '1.': string; bar?: string; }' but required in type '{ '1.0': string; baz?: string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(34,5): error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ '1.': string; bar?: string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(35,5): error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ '1.': string; bar?: string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(36,5): error TS2741: Property ''1.'' is missing in type '{ '1.0': string; }' but required in type '{ '1.': string; bar?: string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(38,5): error TS2741: Property ''1.0'' is missing in type '{ '1': string; }' but required in type '{ '1.0': string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(39,5): error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type '{ '1': string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(42,5): error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ '1.0': string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(65,5): error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S'. +assignmentCompatWithObjectMembersStringNumericNames.ts(71,5): error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S2'. +assignmentCompatWithObjectMembersStringNumericNames.ts(73,5): error TS2741: Property ''1.'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ '1.': string; bar?: string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(74,5): error TS2741: Property '1.0' is missing in type '{ '1.': string; bar?: string; }' but required in type '{ 1: string; baz?: string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(75,5): error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ '1.': string; bar?: string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(76,5): error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ '1.': string; bar?: string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(77,5): error TS2741: Property ''1.'' is missing in type '{ '1.0': string; }' but required in type '{ '1.': string; bar?: string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(78,5): error TS2741: Property ''1.'' is missing in type '{ 1: string; }' but required in type '{ '1.': string; bar?: string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(80,5): error TS2741: Property ''1.0'' is missing in type '{ 1: string; }' but required in type '{ '1.0': string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(81,5): error TS2741: Property '1.' is missing in type '{ '1.0': string; }' but required in type '{ 1: string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(82,5): error TS2741: Property ''1.0'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ '1.0': string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(83,5): error TS2741: Property ''1.0'' is missing in type 'T2' but required in type '{ '1.0': string; }'. +assignmentCompatWithObjectMembersStringNumericNames.ts(84,5): error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ '1.0': string; }'. ==== assignmentCompatWithObjectMembersStringNumericNames.ts (29 errors) ==== @@ -61,7 +61,7 @@ assignmentCompatWithObjectMembersStringNumericNames.ts(84,5): error TS2741: Prop s = s2; // ok s = a2; ~ -!!! error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S'. +!!! error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:5:15: ''1'' is declared here. s2 = t2; @@ -78,47 +78,47 @@ assignmentCompatWithObjectMembersStringNumericNames.ts(84,5): error TS2741: Prop !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:10:20: ''1'' is declared here. s2 = b; ~~ -!!! error TS2741: Property ''1'' is missing in type '{ "1.0": string; baz?: string; }' but required in type 'S2'. +!!! error TS2741: Property ''1'' is missing in type '{ '1.0': string; baz?: string; }' but required in type 'S2'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:10:20: ''1'' is declared here. s2 = a2; ~~ -!!! error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S2'. +!!! error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S2'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:10:20: ''1'' is declared here. a = b; ~ -!!! error TS2741: Property ''1.'' is missing in type '{ "1.0": string; baz?: string; }' but required in type '{ "1.": string; bar?: string; }'. +!!! error TS2741: Property ''1.'' is missing in type '{ '1.0': string; baz?: string; }' but required in type '{ '1.': string; bar?: string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:15:14: ''1.'' is declared here. b = a; ~ -!!! error TS2741: Property ''1.0'' is missing in type '{ "1.": string; bar?: string; }' but required in type '{ "1.0": string; baz?: string; }'. +!!! error TS2741: Property ''1.0'' is missing in type '{ '1.': string; bar?: string; }' but required in type '{ '1.0': string; baz?: string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:16:14: ''1.0'' is declared here. a = s; ~ -!!! error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ "1.": string; bar?: string; }'. +!!! error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ '1.': string; bar?: string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:15:14: ''1.'' is declared here. a = s2; ~ -!!! error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ "1.": string; bar?: string; }'. +!!! error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ '1.': string; bar?: string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:15:14: ''1.'' is declared here. a = a2; ~ -!!! error TS2741: Property ''1.'' is missing in type '{ "1.0": string; }' but required in type '{ "1.": string; bar?: string; }'. +!!! error TS2741: Property ''1.'' is missing in type '{ '1.0': string; }' but required in type '{ '1.': string; bar?: string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:15:14: ''1.'' is declared here. a2 = b2; ~~ -!!! error TS2741: Property ''1.0'' is missing in type '{ "1": string; }' but required in type '{ "1.0": string; }'. +!!! error TS2741: Property ''1.0'' is missing in type '{ '1': string; }' but required in type '{ '1.0': string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:18:16: ''1.0'' is declared here. b2 = a2; ~~ -!!! error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type '{ "1": string; }'. +!!! error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type '{ '1': string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:19:16: ''1'' is declared here. a2 = b; // ok a2 = t2; // ok a2 = t; ~~ -!!! error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ "1.0": string; }'. +!!! error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ '1.0': string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:18:16: ''1.0'' is declared here. } @@ -144,7 +144,7 @@ assignmentCompatWithObjectMembersStringNumericNames.ts(84,5): error TS2741: Prop s = s2; // ok s = a2; // error ~ -!!! error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S'. +!!! error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:46:15: ''1'' is declared here. s2 = t2; // ok @@ -153,52 +153,52 @@ assignmentCompatWithObjectMembersStringNumericNames.ts(84,5): error TS2741: Prop s2 = b; // ok s2 = a2; // error ~~ -!!! error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S2'. +!!! error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S2'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:51:20: ''1'' is declared here. a = b; // error ~ -!!! error TS2741: Property ''1.'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ "1.": string; bar?: string; }'. +!!! error TS2741: Property ''1.'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ '1.': string; bar?: string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:56:14: ''1.'' is declared here. b = a; // error ~ -!!! error TS2741: Property '1.0' is missing in type '{ "1.": string; bar?: string; }' but required in type '{ 1: string; baz?: string; }'. +!!! error TS2741: Property '1.0' is missing in type '{ '1.': string; bar?: string; }' but required in type '{ 1: string; baz?: string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:57:14: '1.0' is declared here. a = s; // error ~ -!!! error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ "1.": string; bar?: string; }'. +!!! error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ '1.': string; bar?: string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:56:14: ''1.'' is declared here. a = s2; // error ~ -!!! error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ "1.": string; bar?: string; }'. +!!! error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ '1.': string; bar?: string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:56:14: ''1.'' is declared here. a = a2; // error ~ -!!! error TS2741: Property ''1.'' is missing in type '{ "1.0": string; }' but required in type '{ "1.": string; bar?: string; }'. +!!! error TS2741: Property ''1.'' is missing in type '{ '1.0': string; }' but required in type '{ '1.': string; bar?: string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:56:14: ''1.'' is declared here. a = b2; // error ~ -!!! error TS2741: Property ''1.'' is missing in type '{ 1: string; }' but required in type '{ "1.": string; bar?: string; }'. +!!! error TS2741: Property ''1.'' is missing in type '{ 1: string; }' but required in type '{ '1.': string; bar?: string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:56:14: ''1.'' is declared here. a2 = b2; // error ~~ -!!! error TS2741: Property ''1.0'' is missing in type '{ 1: string; }' but required in type '{ "1.0": string; }'. +!!! error TS2741: Property ''1.0'' is missing in type '{ 1: string; }' but required in type '{ '1.0': string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:59:16: ''1.0'' is declared here. b2 = a2; // error ~~ -!!! error TS2741: Property '1.' is missing in type '{ "1.0": string; }' but required in type '{ 1: string; }'. +!!! error TS2741: Property '1.' is missing in type '{ '1.0': string; }' but required in type '{ 1: string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:60:16: '1.' is declared here. a2 = b; // error ~~ -!!! error TS2741: Property ''1.0'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ "1.0": string; }'. +!!! error TS2741: Property ''1.0'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ '1.0': string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:59:16: ''1.0'' is declared here. a2 = t2; // error ~~ -!!! error TS2741: Property ''1.0'' is missing in type 'T2' but required in type '{ "1.0": string; }'. +!!! error TS2741: Property ''1.0'' is missing in type 'T2' but required in type '{ '1.0': string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:59:16: ''1.0'' is declared here. a2 = t; // error ~~ -!!! error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ "1.0": string; }'. +!!! error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ '1.0': string; }'. !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:59:16: ''1.0'' is declared here. } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.errors.txt.diff deleted file mode 100644 index 8006b2f687..0000000000 --- a/testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.errors.txt.diff +++ /dev/null @@ -1,200 +0,0 @@ ---- old.assignmentCompatWithObjectMembersStringNumericNames.errors.txt -+++ new.assignmentCompatWithObjectMembersStringNumericNames.errors.txt -@@= skipped -0, +0 lines =@@ - assignmentCompatWithObjectMembersStringNumericNames.ts(21,5): error TS2741: Property ''1'' is missing in type 'T' but required in type 'S'. - assignmentCompatWithObjectMembersStringNumericNames.ts(22,5): error TS2741: Property ''1.'' is missing in type 'S' but required in type 'T'. --assignmentCompatWithObjectMembersStringNumericNames.ts(24,5): error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(24,5): error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S'. - assignmentCompatWithObjectMembersStringNumericNames.ts(26,5): error TS2741: Property ''1'' is missing in type 'T2' but required in type 'S2'. - assignmentCompatWithObjectMembersStringNumericNames.ts(27,5): error TS2741: Property ''1.0'' is missing in type 'S2' but required in type 'T2'. - assignmentCompatWithObjectMembersStringNumericNames.ts(28,5): error TS2741: Property ''1'' is missing in type 'T' but required in type 'S2'. --assignmentCompatWithObjectMembersStringNumericNames.ts(29,5): error TS2741: Property ''1'' is missing in type '{ '1.0': string; baz?: string; }' but required in type 'S2'. --assignmentCompatWithObjectMembersStringNumericNames.ts(30,5): error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S2'. --assignmentCompatWithObjectMembersStringNumericNames.ts(32,5): error TS2741: Property ''1.'' is missing in type '{ '1.0': string; baz?: string; }' but required in type '{ '1.': string; bar?: string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(33,5): error TS2741: Property ''1.0'' is missing in type '{ '1.': string; bar?: string; }' but required in type '{ '1.0': string; baz?: string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(34,5): error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ '1.': string; bar?: string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(35,5): error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ '1.': string; bar?: string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(36,5): error TS2741: Property ''1.'' is missing in type '{ '1.0': string; }' but required in type '{ '1.': string; bar?: string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(38,5): error TS2741: Property ''1.0'' is missing in type '{ '1': string; }' but required in type '{ '1.0': string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(39,5): error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type '{ '1': string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(42,5): error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ '1.0': string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(65,5): error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S'. --assignmentCompatWithObjectMembersStringNumericNames.ts(71,5): error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S2'. --assignmentCompatWithObjectMembersStringNumericNames.ts(73,5): error TS2741: Property ''1.'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ '1.': string; bar?: string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(74,5): error TS2741: Property '1.0' is missing in type '{ '1.': string; bar?: string; }' but required in type '{ 1: string; baz?: string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(75,5): error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ '1.': string; bar?: string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(76,5): error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ '1.': string; bar?: string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(77,5): error TS2741: Property ''1.'' is missing in type '{ '1.0': string; }' but required in type '{ '1.': string; bar?: string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(78,5): error TS2741: Property ''1.'' is missing in type '{ 1: string; }' but required in type '{ '1.': string; bar?: string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(80,5): error TS2741: Property ''1.0'' is missing in type '{ 1: string; }' but required in type '{ '1.0': string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(81,5): error TS2741: Property '1.' is missing in type '{ '1.0': string; }' but required in type '{ 1: string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(82,5): error TS2741: Property ''1.0'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ '1.0': string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(83,5): error TS2741: Property ''1.0'' is missing in type 'T2' but required in type '{ '1.0': string; }'. --assignmentCompatWithObjectMembersStringNumericNames.ts(84,5): error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ '1.0': string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(29,5): error TS2741: Property ''1'' is missing in type '{ "1.0": string; baz?: string; }' but required in type 'S2'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(30,5): error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S2'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(32,5): error TS2741: Property ''1.'' is missing in type '{ "1.0": string; baz?: string; }' but required in type '{ "1.": string; bar?: string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(33,5): error TS2741: Property ''1.0'' is missing in type '{ "1.": string; bar?: string; }' but required in type '{ "1.0": string; baz?: string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(34,5): error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ "1.": string; bar?: string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(35,5): error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ "1.": string; bar?: string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(36,5): error TS2741: Property ''1.'' is missing in type '{ "1.0": string; }' but required in type '{ "1.": string; bar?: string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(38,5): error TS2741: Property ''1.0'' is missing in type '{ "1": string; }' but required in type '{ "1.0": string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(39,5): error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type '{ "1": string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(42,5): error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ "1.0": string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(65,5): error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(71,5): error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S2'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(73,5): error TS2741: Property ''1.'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ "1.": string; bar?: string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(74,5): error TS2741: Property '1.0' is missing in type '{ "1.": string; bar?: string; }' but required in type '{ 1: string; baz?: string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(75,5): error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ "1.": string; bar?: string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(76,5): error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ "1.": string; bar?: string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(77,5): error TS2741: Property ''1.'' is missing in type '{ "1.0": string; }' but required in type '{ "1.": string; bar?: string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(78,5): error TS2741: Property ''1.'' is missing in type '{ 1: string; }' but required in type '{ "1.": string; bar?: string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(80,5): error TS2741: Property ''1.0'' is missing in type '{ 1: string; }' but required in type '{ "1.0": string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(81,5): error TS2741: Property '1.' is missing in type '{ "1.0": string; }' but required in type '{ 1: string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(82,5): error TS2741: Property ''1.0'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ "1.0": string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(83,5): error TS2741: Property ''1.0'' is missing in type 'T2' but required in type '{ "1.0": string; }'. -+assignmentCompatWithObjectMembersStringNumericNames.ts(84,5): error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ "1.0": string; }'. - - - ==== assignmentCompatWithObjectMembersStringNumericNames.ts (29 errors) ==== -@@= skipped -60, +60 lines =@@ - s = s2; // ok - s = a2; - ~ --!!! error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S'. -+!!! error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:5:15: ''1'' is declared here. - - s2 = t2; -@@= skipped -17, +17 lines =@@ - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:10:20: ''1'' is declared here. - s2 = b; - ~~ --!!! error TS2741: Property ''1'' is missing in type '{ '1.0': string; baz?: string; }' but required in type 'S2'. -+!!! error TS2741: Property ''1'' is missing in type '{ "1.0": string; baz?: string; }' but required in type 'S2'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:10:20: ''1'' is declared here. - s2 = a2; - ~~ --!!! error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S2'. -+!!! error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S2'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:10:20: ''1'' is declared here. - - a = b; - ~ --!!! error TS2741: Property ''1.'' is missing in type '{ '1.0': string; baz?: string; }' but required in type '{ '1.': string; bar?: string; }'. -+!!! error TS2741: Property ''1.'' is missing in type '{ "1.0": string; baz?: string; }' but required in type '{ "1.": string; bar?: string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:15:14: ''1.'' is declared here. - b = a; - ~ --!!! error TS2741: Property ''1.0'' is missing in type '{ '1.': string; bar?: string; }' but required in type '{ '1.0': string; baz?: string; }'. -+!!! error TS2741: Property ''1.0'' is missing in type '{ "1.": string; bar?: string; }' but required in type '{ "1.0": string; baz?: string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:16:14: ''1.0'' is declared here. - a = s; - ~ --!!! error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ '1.': string; bar?: string; }'. -+!!! error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ "1.": string; bar?: string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:15:14: ''1.'' is declared here. - a = s2; - ~ --!!! error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ '1.': string; bar?: string; }'. -+!!! error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ "1.": string; bar?: string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:15:14: ''1.'' is declared here. - a = a2; - ~ --!!! error TS2741: Property ''1.'' is missing in type '{ '1.0': string; }' but required in type '{ '1.': string; bar?: string; }'. -+!!! error TS2741: Property ''1.'' is missing in type '{ "1.0": string; }' but required in type '{ "1.": string; bar?: string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:15:14: ''1.'' is declared here. - - a2 = b2; - ~~ --!!! error TS2741: Property ''1.0'' is missing in type '{ '1': string; }' but required in type '{ '1.0': string; }'. -+!!! error TS2741: Property ''1.0'' is missing in type '{ "1": string; }' but required in type '{ "1.0": string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:18:16: ''1.0'' is declared here. - b2 = a2; - ~~ --!!! error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type '{ '1': string; }'. -+!!! error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type '{ "1": string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:19:16: ''1'' is declared here. - a2 = b; // ok - a2 = t2; // ok - a2 = t; - ~~ --!!! error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ '1.0': string; }'. -+!!! error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ "1.0": string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:18:16: ''1.0'' is declared here. - } - -@@= skipped -66, +66 lines =@@ - s = s2; // ok - s = a2; // error - ~ --!!! error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S'. -+!!! error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:46:15: ''1'' is declared here. - - s2 = t2; // ok -@@= skipped -9, +9 lines =@@ - s2 = b; // ok - s2 = a2; // error - ~~ --!!! error TS2741: Property ''1'' is missing in type '{ '1.0': string; }' but required in type 'S2'. -+!!! error TS2741: Property ''1'' is missing in type '{ "1.0": string; }' but required in type 'S2'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:51:20: ''1'' is declared here. - - a = b; // error - ~ --!!! error TS2741: Property ''1.'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ '1.': string; bar?: string; }'. -+!!! error TS2741: Property ''1.'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ "1.": string; bar?: string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:56:14: ''1.'' is declared here. - b = a; // error - ~ --!!! error TS2741: Property '1.0' is missing in type '{ '1.': string; bar?: string; }' but required in type '{ 1: string; baz?: string; }'. -+!!! error TS2741: Property '1.0' is missing in type '{ "1.": string; bar?: string; }' but required in type '{ 1: string; baz?: string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:57:14: '1.0' is declared here. - a = s; // error - ~ --!!! error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ '1.': string; bar?: string; }'. -+!!! error TS2741: Property ''1.'' is missing in type 'S' but required in type '{ "1.": string; bar?: string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:56:14: ''1.'' is declared here. - a = s2; // error - ~ --!!! error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ '1.': string; bar?: string; }'. -+!!! error TS2741: Property ''1.'' is missing in type 'S2' but required in type '{ "1.": string; bar?: string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:56:14: ''1.'' is declared here. - a = a2; // error - ~ --!!! error TS2741: Property ''1.'' is missing in type '{ '1.0': string; }' but required in type '{ '1.': string; bar?: string; }'. -+!!! error TS2741: Property ''1.'' is missing in type '{ "1.0": string; }' but required in type '{ "1.": string; bar?: string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:56:14: ''1.'' is declared here. - a = b2; // error - ~ --!!! error TS2741: Property ''1.'' is missing in type '{ 1: string; }' but required in type '{ '1.': string; bar?: string; }'. -+!!! error TS2741: Property ''1.'' is missing in type '{ 1: string; }' but required in type '{ "1.": string; bar?: string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:56:14: ''1.'' is declared here. - - a2 = b2; // error - ~~ --!!! error TS2741: Property ''1.0'' is missing in type '{ 1: string; }' but required in type '{ '1.0': string; }'. -+!!! error TS2741: Property ''1.0'' is missing in type '{ 1: string; }' but required in type '{ "1.0": string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:59:16: ''1.0'' is declared here. - b2 = a2; // error - ~~ --!!! error TS2741: Property '1.' is missing in type '{ '1.0': string; }' but required in type '{ 1: string; }'. -+!!! error TS2741: Property '1.' is missing in type '{ "1.0": string; }' but required in type '{ 1: string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:60:16: '1.' is declared here. - a2 = b; // error - ~~ --!!! error TS2741: Property ''1.0'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ '1.0': string; }'. -+!!! error TS2741: Property ''1.0'' is missing in type '{ 1: string; baz?: string; }' but required in type '{ "1.0": string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:59:16: ''1.0'' is declared here. - a2 = t2; // error - ~~ --!!! error TS2741: Property ''1.0'' is missing in type 'T2' but required in type '{ '1.0': string; }'. -+!!! error TS2741: Property ''1.0'' is missing in type 'T2' but required in type '{ "1.0": string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:59:16: ''1.0'' is declared here. - a2 = t; // error - ~~ --!!! error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ '1.0': string; }'. -+!!! error TS2741: Property ''1.0'' is missing in type 'T' but required in type '{ "1.0": string; }'. - !!! related TS2728 assignmentCompatWithObjectMembersStringNumericNames.ts:59:16: ''1.0'' is declared here. - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.types b/testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.types index 94e492f71f..0f5d470a42 100644 --- a/testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.types +++ b/testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.types @@ -36,24 +36,24 @@ module JustStrings { >t2 : T2 var a: { '1.': string; bar?: string } ->a : { "1.": string; bar?: string; } +>a : { '1.': string; bar?: string; } >'1.' : string >bar : string var b: { '1.0': string; baz?: string } ->b : { "1.0": string; baz?: string; } +>b : { '1.0': string; baz?: string; } >'1.0' : string >baz : string var a2 = { '1.0': '' }; ->a2 : { "1.0": string; } ->{ '1.0': '' } : { "1.0": string; } +>a2 : { '1.0': string; } +>{ '1.0': '' } : { '1.0': string; } >'1.0' : string >'' : "" var b2 = { '1': '' }; ->b2 : { "1": string; } ->{ '1': '' } : { "1": string; } +>b2 : { '1': string; } +>{ '1': '' } : { '1': string; } >'1' : string >'' : "" @@ -73,9 +73,9 @@ module JustStrings { >s2 : S2 s = a2; ->s = a2 : { "1.0": string; } +>s = a2 : { '1.0': string; } >s : S ->a2 : { "1.0": string; } +>a2 : { '1.0': string; } s2 = t2; >s2 = t2 : T2 @@ -93,63 +93,63 @@ module JustStrings { >t : T s2 = b; ->s2 = b : { "1.0": string; baz?: string; } +>s2 = b : { '1.0': string; baz?: string; } >s2 : S2 ->b : { "1.0": string; baz?: string; } +>b : { '1.0': string; baz?: string; } s2 = a2; ->s2 = a2 : { "1.0": string; } +>s2 = a2 : { '1.0': string; } >s2 : S2 ->a2 : { "1.0": string; } +>a2 : { '1.0': string; } a = b; ->a = b : { "1.0": string; baz?: string; } ->a : { "1.": string; bar?: string; } ->b : { "1.0": string; baz?: string; } +>a = b : { '1.0': string; baz?: string; } +>a : { '1.': string; bar?: string; } +>b : { '1.0': string; baz?: string; } b = a; ->b = a : { "1.": string; bar?: string; } ->b : { "1.0": string; baz?: string; } ->a : { "1.": string; bar?: string; } +>b = a : { '1.': string; bar?: string; } +>b : { '1.0': string; baz?: string; } +>a : { '1.': string; bar?: string; } a = s; >a = s : S ->a : { "1.": string; bar?: string; } +>a : { '1.': string; bar?: string; } >s : S a = s2; >a = s2 : S2 ->a : { "1.": string; bar?: string; } +>a : { '1.': string; bar?: string; } >s2 : S2 a = a2; ->a = a2 : { "1.0": string; } ->a : { "1.": string; bar?: string; } ->a2 : { "1.0": string; } +>a = a2 : { '1.0': string; } +>a : { '1.': string; bar?: string; } +>a2 : { '1.0': string; } a2 = b2; ->a2 = b2 : { "1": string; } ->a2 : { "1.0": string; } ->b2 : { "1": string; } +>a2 = b2 : { '1': string; } +>a2 : { '1.0': string; } +>b2 : { '1': string; } b2 = a2; ->b2 = a2 : { "1.0": string; } ->b2 : { "1": string; } ->a2 : { "1.0": string; } +>b2 = a2 : { '1.0': string; } +>b2 : { '1': string; } +>a2 : { '1.0': string; } a2 = b; // ok ->a2 = b : { "1.0": string; baz?: string; } ->a2 : { "1.0": string; } ->b : { "1.0": string; baz?: string; } +>a2 = b : { '1.0': string; baz?: string; } +>a2 : { '1.0': string; } +>b : { '1.0': string; baz?: string; } a2 = t2; // ok >a2 = t2 : T2 ->a2 : { "1.0": string; } +>a2 : { '1.0': string; } >t2 : T2 a2 = t; >a2 = t : T ->a2 : { "1.0": string; } +>a2 : { '1.0': string; } >t : T } @@ -185,7 +185,7 @@ module NumbersAndStrings { >t2 : T2 var a: { '1.': string; bar?: string } ->a : { "1.": string; bar?: string; } +>a : { '1.': string; bar?: string; } >'1.' : string >bar : string @@ -195,8 +195,8 @@ module NumbersAndStrings { >baz : string var a2 = { '1.0': '' }; ->a2 : { "1.0": string; } ->{ '1.0': '' } : { "1.0": string; } +>a2 : { '1.0': string; } +>{ '1.0': '' } : { '1.0': string; } >'1.0' : string >'' : "" @@ -222,9 +222,9 @@ module NumbersAndStrings { >s2 : S2 s = a2; // error ->s = a2 : { "1.0": string; } +>s = a2 : { '1.0': string; } >s : S ->a2 : { "1.0": string; } +>a2 : { '1.0': string; } s2 = t2; // ok >s2 = t2 : T2 @@ -247,62 +247,62 @@ module NumbersAndStrings { >b : { 1: string; baz?: string; } s2 = a2; // error ->s2 = a2 : { "1.0": string; } +>s2 = a2 : { '1.0': string; } >s2 : S2 ->a2 : { "1.0": string; } +>a2 : { '1.0': string; } a = b; // error >a = b : { 1: string; baz?: string; } ->a : { "1.": string; bar?: string; } +>a : { '1.': string; bar?: string; } >b : { 1: string; baz?: string; } b = a; // error ->b = a : { "1.": string; bar?: string; } +>b = a : { '1.': string; bar?: string; } >b : { 1: string; baz?: string; } ->a : { "1.": string; bar?: string; } +>a : { '1.': string; bar?: string; } a = s; // error >a = s : S ->a : { "1.": string; bar?: string; } +>a : { '1.': string; bar?: string; } >s : S a = s2; // error >a = s2 : S2 ->a : { "1.": string; bar?: string; } +>a : { '1.': string; bar?: string; } >s2 : S2 a = a2; // error ->a = a2 : { "1.0": string; } ->a : { "1.": string; bar?: string; } ->a2 : { "1.0": string; } +>a = a2 : { '1.0': string; } +>a : { '1.': string; bar?: string; } +>a2 : { '1.0': string; } a = b2; // error >a = b2 : { 1: string; } ->a : { "1.": string; bar?: string; } +>a : { '1.': string; bar?: string; } >b2 : { 1: string; } a2 = b2; // error >a2 = b2 : { 1: string; } ->a2 : { "1.0": string; } +>a2 : { '1.0': string; } >b2 : { 1: string; } b2 = a2; // error ->b2 = a2 : { "1.0": string; } +>b2 = a2 : { '1.0': string; } >b2 : { 1: string; } ->a2 : { "1.0": string; } +>a2 : { '1.0': string; } a2 = b; // error >a2 = b : { 1: string; baz?: string; } ->a2 : { "1.0": string; } +>a2 : { '1.0': string; } >b : { 1: string; baz?: string; } a2 = t2; // error >a2 = t2 : T2 ->a2 : { "1.0": string; } +>a2 : { '1.0': string; } >t2 : T2 a2 = t; // error >a2 = t : T ->a2 : { "1.0": string; } +>a2 : { '1.0': string; } >t : T } diff --git a/testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.types.diff b/testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.types.diff deleted file mode 100644 index 1fd112b620..0000000000 --- a/testdata/baselines/reference/submodule/conformance/assignmentCompatWithObjectMembersStringNumericNames.types.diff +++ /dev/null @@ -1,247 +0,0 @@ ---- old.assignmentCompatWithObjectMembersStringNumericNames.types -+++ new.assignmentCompatWithObjectMembersStringNumericNames.types -@@= skipped -35, +35 lines =@@ - >t2 : T2 - - var a: { '1.': string; bar?: string } -->a : { '1.': string; bar?: string; } -+>a : { "1.": string; bar?: string; } - >'1.' : string - >bar : string - - var b: { '1.0': string; baz?: string } -->b : { '1.0': string; baz?: string; } -+>b : { "1.0": string; baz?: string; } - >'1.0' : string - >baz : string - - var a2 = { '1.0': '' }; -->a2 : { '1.0': string; } -->{ '1.0': '' } : { '1.0': string; } -+>a2 : { "1.0": string; } -+>{ '1.0': '' } : { "1.0": string; } - >'1.0' : string - >'' : "" - - var b2 = { '1': '' }; -->b2 : { '1': string; } -->{ '1': '' } : { '1': string; } -+>b2 : { "1": string; } -+>{ '1': '' } : { "1": string; } - >'1' : string - >'' : "" - -@@= skipped -37, +37 lines =@@ - >s2 : S2 - - s = a2; -->s = a2 : { '1.0': string; } -+>s = a2 : { "1.0": string; } - >s : S -->a2 : { '1.0': string; } -+>a2 : { "1.0": string; } - - s2 = t2; - >s2 = t2 : T2 -@@= skipped -20, +20 lines =@@ - >t : T - - s2 = b; -->s2 = b : { '1.0': string; baz?: string; } -+>s2 = b : { "1.0": string; baz?: string; } - >s2 : S2 -->b : { '1.0': string; baz?: string; } -+>b : { "1.0": string; baz?: string; } - - s2 = a2; -->s2 = a2 : { '1.0': string; } -+>s2 = a2 : { "1.0": string; } - >s2 : S2 -->a2 : { '1.0': string; } -+>a2 : { "1.0": string; } - - a = b; -->a = b : { '1.0': string; baz?: string; } -->a : { '1.': string; bar?: string; } -->b : { '1.0': string; baz?: string; } -+>a = b : { "1.0": string; baz?: string; } -+>a : { "1.": string; bar?: string; } -+>b : { "1.0": string; baz?: string; } - - b = a; -->b = a : { '1.': string; bar?: string; } -->b : { '1.0': string; baz?: string; } -->a : { '1.': string; bar?: string; } -+>b = a : { "1.": string; bar?: string; } -+>b : { "1.0": string; baz?: string; } -+>a : { "1.": string; bar?: string; } - - a = s; - >a = s : S -->a : { '1.': string; bar?: string; } -+>a : { "1.": string; bar?: string; } - >s : S - - a = s2; - >a = s2 : S2 -->a : { '1.': string; bar?: string; } -+>a : { "1.": string; bar?: string; } - >s2 : S2 - - a = a2; -->a = a2 : { '1.0': string; } -->a : { '1.': string; bar?: string; } -->a2 : { '1.0': string; } -+>a = a2 : { "1.0": string; } -+>a : { "1.": string; bar?: string; } -+>a2 : { "1.0": string; } - - a2 = b2; -->a2 = b2 : { '1': string; } -->a2 : { '1.0': string; } -->b2 : { '1': string; } -+>a2 = b2 : { "1": string; } -+>a2 : { "1.0": string; } -+>b2 : { "1": string; } - - b2 = a2; -->b2 = a2 : { '1.0': string; } -->b2 : { '1': string; } -->a2 : { '1.0': string; } -+>b2 = a2 : { "1.0": string; } -+>b2 : { "1": string; } -+>a2 : { "1.0": string; } - - a2 = b; // ok -->a2 = b : { '1.0': string; baz?: string; } -->a2 : { '1.0': string; } -->b : { '1.0': string; baz?: string; } -+>a2 = b : { "1.0": string; baz?: string; } -+>a2 : { "1.0": string; } -+>b : { "1.0": string; baz?: string; } - - a2 = t2; // ok - >a2 = t2 : T2 -->a2 : { '1.0': string; } -+>a2 : { "1.0": string; } - >t2 : T2 - - a2 = t; - >a2 = t : T -->a2 : { '1.0': string; } -+>a2 : { "1.0": string; } - >t : T - } - -@@= skipped -92, +92 lines =@@ - >t2 : T2 - - var a: { '1.': string; bar?: string } -->a : { '1.': string; bar?: string; } -+>a : { "1.": string; bar?: string; } - >'1.' : string - >bar : string - -@@= skipped -10, +10 lines =@@ - >baz : string - - var a2 = { '1.0': '' }; -->a2 : { '1.0': string; } -->{ '1.0': '' } : { '1.0': string; } -+>a2 : { "1.0": string; } -+>{ '1.0': '' } : { "1.0": string; } - >'1.0' : string - >'' : "" - -@@= skipped -27, +27 lines =@@ - >s2 : S2 - - s = a2; // error -->s = a2 : { '1.0': string; } -+>s = a2 : { "1.0": string; } - >s : S -->a2 : { '1.0': string; } -+>a2 : { "1.0": string; } - - s2 = t2; // ok - >s2 = t2 : T2 -@@= skipped -25, +25 lines =@@ - >b : { 1: string; baz?: string; } - - s2 = a2; // error -->s2 = a2 : { '1.0': string; } -+>s2 = a2 : { "1.0": string; } - >s2 : S2 -->a2 : { '1.0': string; } -+>a2 : { "1.0": string; } - - a = b; // error - >a = b : { 1: string; baz?: string; } -->a : { '1.': string; bar?: string; } -+>a : { "1.": string; bar?: string; } - >b : { 1: string; baz?: string; } - - b = a; // error -->b = a : { '1.': string; bar?: string; } -+>b = a : { "1.": string; bar?: string; } - >b : { 1: string; baz?: string; } -->a : { '1.': string; bar?: string; } -+>a : { "1.": string; bar?: string; } - - a = s; // error - >a = s : S -->a : { '1.': string; bar?: string; } -+>a : { "1.": string; bar?: string; } - >s : S - - a = s2; // error - >a = s2 : S2 -->a : { '1.': string; bar?: string; } -+>a : { "1.": string; bar?: string; } - >s2 : S2 - - a = a2; // error -->a = a2 : { '1.0': string; } -->a : { '1.': string; bar?: string; } -->a2 : { '1.0': string; } -+>a = a2 : { "1.0": string; } -+>a : { "1.": string; bar?: string; } -+>a2 : { "1.0": string; } - - a = b2; // error - >a = b2 : { 1: string; } -->a : { '1.': string; bar?: string; } -+>a : { "1.": string; bar?: string; } - >b2 : { 1: string; } - - a2 = b2; // error - >a2 = b2 : { 1: string; } -->a2 : { '1.0': string; } -+>a2 : { "1.0": string; } - >b2 : { 1: string; } - - b2 = a2; // error -->b2 = a2 : { '1.0': string; } -+>b2 = a2 : { "1.0": string; } - >b2 : { 1: string; } -->a2 : { '1.0': string; } -+>a2 : { "1.0": string; } - - a2 = b; // error - >a2 = b : { 1: string; baz?: string; } -->a2 : { '1.0': string; } -+>a2 : { "1.0": string; } - >b : { 1: string; baz?: string; } - - a2 = t2; // error - >a2 = t2 : T2 -->a2 : { '1.0': string; } -+>a2 : { "1.0": string; } - >t2 : T2 - - a2 = t; // error - >a2 = t : T -->a2 : { '1.0': string; } -+>a2 : { "1.0": string; } - >t : T - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/objectLiteralErrors.types b/testdata/baselines/reference/submodule/conformance/objectLiteralErrors.types index 49d561125b..957ca56361 100644 --- a/testdata/baselines/reference/submodule/conformance/objectLiteralErrors.types +++ b/testdata/baselines/reference/submodule/conformance/objectLiteralErrors.types @@ -230,8 +230,8 @@ var f10 = { "a": 0, get 'a'() { return 0; } }; >0 : 0 var f11 = { 1.0: 0, get '1'() { return 0; } }; ->f11 : { readonly "1": number; } ->{ 1.0: 0, get '1'() { return 0; } } : { readonly "1": number; } +>f11 : { readonly '1': number; } +>{ 1.0: 0, get '1'() { return 0; } } : { readonly '1': number; } >1.0 : number >0 : 0 >'1' : number diff --git a/testdata/baselines/reference/submodule/conformance/objectLiteralErrors.types.diff b/testdata/baselines/reference/submodule/conformance/objectLiteralErrors.types.diff deleted file mode 100644 index 2505e784ab..0000000000 --- a/testdata/baselines/reference/submodule/conformance/objectLiteralErrors.types.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.objectLiteralErrors.types -+++ new.objectLiteralErrors.types -@@= skipped -229, +229 lines =@@ - >0 : 0 - - var f11 = { 1.0: 0, get '1'() { return 0; } }; -->f11 : { readonly '1': number; } -->{ 1.0: 0, get '1'() { return 0; } } : { readonly '1': number; } -+>f11 : { readonly "1": number; } -+>{ 1.0: 0, get '1'() { return 0; } } : { readonly "1": number; } - >1.0 : number - >0 : 0 - >'1' : number \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/objectLiteralGettersAndSetters.types b/testdata/baselines/reference/submodule/conformance/objectLiteralGettersAndSetters.types index de0a2db311..8ce79af057 100644 --- a/testdata/baselines/reference/submodule/conformance/objectLiteralGettersAndSetters.types +++ b/testdata/baselines/reference/submodule/conformance/objectLiteralGettersAndSetters.types @@ -47,8 +47,8 @@ var sameName4a = { get ''() { return ''; }, set ""(n) { var p = n; var p: string >p : string var sameName5a = { get '\t'() { return ''; }, set '\t'(n) { var p = n; var p: string; } }; ->sameName5a : { "\t": string; } ->{ get '\t'() { return ''; }, set '\t'(n) { var p = n; var p: string; } } : { "\t": string; } +>sameName5a : { '\t': string; } +>{ get '\t'() { return ''; }, set '\t'(n) { var p = n; var p: string; } } : { '\t': string; } >'\t' : string >'' : "" >'\t' : string diff --git a/testdata/baselines/reference/submodule/conformance/objectLiteralGettersAndSetters.types.diff b/testdata/baselines/reference/submodule/conformance/objectLiteralGettersAndSetters.types.diff index 11299cdafa..bee0c517ae 100644 --- a/testdata/baselines/reference/submodule/conformance/objectLiteralGettersAndSetters.types.diff +++ b/testdata/baselines/reference/submodule/conformance/objectLiteralGettersAndSetters.types.diff @@ -1,17 +1,6 @@ --- old.objectLiteralGettersAndSetters.types +++ new.objectLiteralGettersAndSetters.types -@@= skipped -46, +46 lines =@@ - >p : string - - var sameName5a = { get '\t'() { return ''; }, set '\t'(n) { var p = n; var p: string; } }; -->sameName5a : { '\t': string; } -->{ get '\t'() { return ''; }, set '\t'(n) { var p = n; var p: string; } } : { '\t': string; } -+>sameName5a : { "\t": string; } -+>{ get '\t'() { return ''; }, set '\t'(n) { var p = n; var p: string; } } : { "\t": string; } - >'\t' : string - >'' : "" - >'\t' : string -@@= skipped -117, +117 lines =@@ +@@= skipped -163, +163 lines =@@ >n : string var sameType2 = { get x(): Array { return undefined; }, set x(n: number[]) { } }; diff --git a/testdata/baselines/reference/submodule/conformance/parserForInStatement8.types b/testdata/baselines/reference/submodule/conformance/parserForInStatement8.types index 4b8813e3d2..fd37c48a1f 100644 --- a/testdata/baselines/reference/submodule/conformance/parserForInStatement8.types +++ b/testdata/baselines/reference/submodule/conformance/parserForInStatement8.types @@ -8,7 +8,7 @@ for (let [x = 'a' in {}] in { '': 0 }) console.log(x) >'a' in {} : boolean >'a' : "a" >{} : {} ->{ '': 0 } : { "": number; } +>{ '': 0 } : { '': number; } >'' : number >0 : 0 >console.log(x) : void @@ -22,7 +22,7 @@ for (let {x = 'a' in {}} in { '': 0 }) console.log(x) >'a' in {} : boolean >'a' : "a" >{} : {} ->{ '': 0 } : { "": number; } +>{ '': 0 } : { '': number; } >'' : number >0 : 0 >console.log(x) : void diff --git a/testdata/baselines/reference/submodule/conformance/parserForInStatement8.types.diff b/testdata/baselines/reference/submodule/conformance/parserForInStatement8.types.diff deleted file mode 100644 index 335c60745a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/parserForInStatement8.types.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.parserForInStatement8.types -+++ new.parserForInStatement8.types -@@= skipped -7, +7 lines =@@ - >'a' in {} : boolean - >'a' : "a" - >{} : {} -->{ '': 0 } : { '': number; } -+>{ '': 0 } : { "": number; } - >'' : number - >0 : 0 - >console.log(x) : void -@@= skipped -14, +14 lines =@@ - >'a' in {} : boolean - >'a' : "a" - >{} : {} -->{ '': 0 } : { '': number; } -+>{ '': 0 } : { "": number; } - >'' : number - >0 : 0 - >console.log(x) : void \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/propertyAccess.errors.txt b/testdata/baselines/reference/submodule/conformance/propertyAccess.errors.txt index 5032405b97..344a5571d7 100644 --- a/testdata/baselines/reference/submodule/conformance/propertyAccess.errors.txt +++ b/testdata/baselines/reference/submodule/conformance/propertyAccess.errors.txt @@ -1,5 +1,5 @@ propertyAccess.ts(11,55): error TS2353: Object literal may only specify known properties, and ''three'' does not exist in type '{ [n: number]: string; }'. -propertyAccess.ts(45,14): error TS2339: Property 'qqq' does not exist on type '{ 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; }'. +propertyAccess.ts(45,14): error TS2339: Property 'qqq' does not exist on type '{ 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; }'. propertyAccess.ts(80,19): error TS2538: Type '{ name: string; }' cannot be used as an index type. propertyAccess.ts(117,18): error TS2538: Type '{ name: string; }' cannot be used as an index type. propertyAccess.ts(140,22): error TS2538: Type '{ name: string; }' cannot be used as an index type. @@ -55,7 +55,7 @@ propertyAccess.ts(149,5): error TS2403: Subsequent variable declarations must ha // Dotted property access of property that doesn't exist on value's apparent type var cc = obj.qqq; // error ~~~ -!!! error TS2339: Property 'qqq' does not exist on type '{ 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; }'. +!!! error TS2339: Property 'qqq' does not exist on type '{ 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; }'. // Bracket notation property access using string literal value on type with property of that literal name var dd = obj['literal property']; diff --git a/testdata/baselines/reference/submodule/conformance/propertyAccess.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/propertyAccess.errors.txt.diff deleted file mode 100644 index a9ee018a46..0000000000 --- a/testdata/baselines/reference/submodule/conformance/propertyAccess.errors.txt.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.propertyAccess.errors.txt -+++ new.propertyAccess.errors.txt -@@= skipped -0, +0 lines =@@ - propertyAccess.ts(11,55): error TS2353: Object literal may only specify known properties, and ''three'' does not exist in type '{ [n: number]: string; }'. --propertyAccess.ts(45,14): error TS2339: Property 'qqq' does not exist on type '{ 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; }'. -+propertyAccess.ts(45,14): error TS2339: Property 'qqq' does not exist on type '{ 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; }'. - propertyAccess.ts(80,19): error TS2538: Type '{ name: string; }' cannot be used as an index type. - propertyAccess.ts(117,18): error TS2538: Type '{ name: string; }' cannot be used as an index type. - propertyAccess.ts(140,22): error TS2538: Type '{ name: string; }' cannot be used as an index type. -@@= skipped -54, +54 lines =@@ - // Dotted property access of property that doesn't exist on value's apparent type - var cc = obj.qqq; // error - ~~~ --!!! error TS2339: Property 'qqq' does not exist on type '{ 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; }'. -+!!! error TS2339: Property 'qqq' does not exist on type '{ 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; }'. - - // Bracket notation property access using string literal value on type with property of that literal name - var dd = obj['literal property']; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/propertyAccess.types b/testdata/baselines/reference/submodule/conformance/propertyAccess.types index 3e01ddddb8..22ba7dae1d 100644 --- a/testdata/baselines/reference/submodule/conformance/propertyAccess.types +++ b/testdata/baselines/reference/submodule/conformance/propertyAccess.types @@ -61,8 +61,8 @@ function noIndex() { } >noIndex : () => void var obj = { ->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } ->{ 10: 'ten', x: 'hello', y: 32, z: { n: 'world', m: 15, o: () => false }, 'literal property': 100} : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } +>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } +>{ 10: 'ten', x: 'hello', y: 32, z: { n: 'world', m: 15, o: () => false }, 'literal property': 100} : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } 10: 'ten', >10 : string @@ -107,7 +107,7 @@ var someObject: { name: string }; obj.y = 4; >obj.y = 4 : 4 >obj.y : number ->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } +>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } >y : number >4 : 4 @@ -123,7 +123,7 @@ anyVar.x = anyVar.y = obj.x = anyVar.z; >y : any >obj.x = anyVar.z : any >obj.x : string ->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } +>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } >x : string >anyVar.z : any >anyVar : any @@ -133,28 +133,28 @@ anyVar.x = anyVar.y = obj.x = anyVar.z; var aa = obj.x; >aa : string >obj.x : string ->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } +>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } >x : string // Dotted property access of property that exists on value's apparent type var bb = obj.hasOwnProperty; >bb : (v: PropertyKey) => boolean >obj.hasOwnProperty : (v: PropertyKey) => boolean ->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } +>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } >hasOwnProperty : (v: PropertyKey) => boolean // Dotted property access of property that doesn't exist on value's apparent type var cc = obj.qqq; // error >cc : any >obj.qqq : any ->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } +>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } >qqq : any // Bracket notation property access using string literal value on type with property of that literal name var dd = obj['literal property']; >dd : number >obj['literal property'] : number ->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } +>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } >'literal property' : "literal property" var dd: number; @@ -164,7 +164,7 @@ var dd: number; var ee = obj['wa wa wa wa wa']; >ee : any >obj['wa wa wa wa wa'] : any ->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } +>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } >'wa wa wa wa wa' : "wa wa wa wa wa" var ee: any; @@ -174,7 +174,7 @@ var ee: any; var ff = obj['10']; >ff : string >obj['10'] : string ->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } +>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } >'10' : "10" var ff: string; @@ -184,7 +184,7 @@ var ff: string; var gg = obj['1']; >gg : any >obj['1'] : any ->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } +>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } >'1' : "1" var gg: any; diff --git a/testdata/baselines/reference/submodule/conformance/propertyAccess.types.diff b/testdata/baselines/reference/submodule/conformance/propertyAccess.types.diff deleted file mode 100644 index 78befcf8f7..0000000000 --- a/testdata/baselines/reference/submodule/conformance/propertyAccess.types.diff +++ /dev/null @@ -1,91 +0,0 @@ ---- old.propertyAccess.types -+++ new.propertyAccess.types -@@= skipped -60, +60 lines =@@ - >noIndex : () => void - - var obj = { -->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } -->{ 10: 'ten', x: 'hello', y: 32, z: { n: 'world', m: 15, o: () => false }, 'literal property': 100} : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } -+>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } -+>{ 10: 'ten', x: 'hello', y: 32, z: { n: 'world', m: 15, o: () => false }, 'literal property': 100} : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } - - 10: 'ten', - >10 : string -@@= skipped -46, +46 lines =@@ - obj.y = 4; - >obj.y = 4 : 4 - >obj.y : number -->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } -+>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } - >y : number - >4 : 4 - -@@= skipped -16, +16 lines =@@ - >y : any - >obj.x = anyVar.z : any - >obj.x : string -->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } -+>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } - >x : string - >anyVar.z : any - >anyVar : any -@@= skipped -10, +10 lines =@@ - var aa = obj.x; - >aa : string - >obj.x : string -->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } -+>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } - >x : string - - // Dotted property access of property that exists on value's apparent type - var bb = obj.hasOwnProperty; - >bb : (v: PropertyKey) => boolean - >obj.hasOwnProperty : (v: PropertyKey) => boolean -->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } -+>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } - >hasOwnProperty : (v: PropertyKey) => boolean - - // Dotted property access of property that doesn't exist on value's apparent type - var cc = obj.qqq; // error - >cc : any - >obj.qqq : any -->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } -+>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } - >qqq : any - - // Bracket notation property access using string literal value on type with property of that literal name - var dd = obj['literal property']; - >dd : number - >obj['literal property'] : number -->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } -+>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } - >'literal property' : "literal property" - - var dd: number; -@@= skipped -31, +31 lines =@@ - var ee = obj['wa wa wa wa wa']; - >ee : any - >obj['wa wa wa wa wa'] : any -->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } -+>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } - >'wa wa wa wa wa' : "wa wa wa wa wa" - - var ee: any; -@@= skipped -10, +10 lines =@@ - var ff = obj['10']; - >ff : string - >obj['10'] : string -->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } -+>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } - >'10' : "10" - - var ff: string; -@@= skipped -10, +10 lines =@@ - var gg = obj['1']; - >gg : any - >obj['1'] : any -->obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; } -+>obj : { 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; "literal property": number; } - >'1' : "1" - - var gg: any; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/recursiveTypeReferences1.types b/testdata/baselines/reference/submodule/conformance/recursiveTypeReferences1.types index 5580f34952..681de51a01 100644 --- a/testdata/baselines/reference/submodule/conformance/recursiveTypeReferences1.types +++ b/testdata/baselines/reference/submodule/conformance/recursiveTypeReferences1.types @@ -443,7 +443,7 @@ function parse(node: Tree, index: number[] = []): HTMLUListElement { >html('a', { href: `#${el.id}`, rel: 'noopener', 'data-index': idx.join('.') }, el.textContent!) : any >html : any >'a' : "a" ->{ href: `#${el.id}`, rel: 'noopener', 'data-index': idx.join('.') } : { href: string; rel: string; "data-index": string; } +>{ href: `#${el.id}`, rel: 'noopener', 'data-index': idx.join('.') } : { href: string; rel: string; 'data-index': string; } >href : string >`#${el.id}` : string >el.id : string diff --git a/testdata/baselines/reference/submodule/conformance/recursiveTypeReferences1.types.diff b/testdata/baselines/reference/submodule/conformance/recursiveTypeReferences1.types.diff index 3f1abc5e3f..6e5f2ee999 100644 --- a/testdata/baselines/reference/submodule/conformance/recursiveTypeReferences1.types.diff +++ b/testdata/baselines/reference/submodule/conformance/recursiveTypeReferences1.types.diff @@ -160,16 +160,7 @@ >[1, ['a']] : (number | string[])[] >1 : 1 >['a'] : string[] -@@= skipped -106, +106 lines =@@ - >html('a', { href: `#${el.id}`, rel: 'noopener', 'data-index': idx.join('.') }, el.textContent!) : any - >html : any - >'a' : "a" -->{ href: `#${el.id}`, rel: 'noopener', 'data-index': idx.join('.') } : { href: string; rel: string; 'data-index': string; } -+>{ href: `#${el.id}`, rel: 'noopener', 'data-index': idx.join('.') } : { href: string; rel: string; "data-index": string; } - >href : string - >`#${el.id}` : string - >el.id : string -@@= skipped -10, +10 lines =@@ +@@= skipped -116, +116 lines =@@ >'noopener' : "noopener" >'data-index' : string >idx.join('.') : string diff --git a/testdata/baselines/reference/submoduleAccepted/compiler/moduleExportsTypeNoExcessPropertyCheckFromContainedLiteral.types.diff b/testdata/baselines/reference/submoduleAccepted/compiler/moduleExportsTypeNoExcessPropertyCheckFromContainedLiteral.types.diff index 3cccf80643..3155c2a84c 100644 --- a/testdata/baselines/reference/submoduleAccepted/compiler/moduleExportsTypeNoExcessPropertyCheckFromContainedLiteral.types.diff +++ b/testdata/baselines/reference/submoduleAccepted/compiler/moduleExportsTypeNoExcessPropertyCheckFromContainedLiteral.types.diff @@ -1,14 +1,6 @@ --- old.moduleExportsTypeNoExcessPropertyCheckFromContainedLiteral.types +++ new.moduleExportsTypeNoExcessPropertyCheckFromContainedLiteral.types -@@= skipped -1, +1 lines =@@ - - === eslint.config.js === - const eslintReact = require('./eslint-plugin-react.js'); -->eslintReact : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } -->require('./eslint-plugin-react.js') : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } -+>eslintReact : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; } -+>require('./eslint-plugin-react.js') : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; } - >require : any +@@= skipped -7, +7 lines =@@ >'./eslint-plugin-react.js' : "./eslint-plugin-react.js" const tseslint = require('./typescript-eslint.js'); @@ -24,64 +16,22 @@ ->tseslint.config : (...configs: Config[]) => void ->tseslint : typeof tseslint ->config : (...configs: Config[]) => void -->eslintReact : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } +>tseslint.config : (...configs: import("typescript-eslint").Config[]) => void +>tseslint : { config: (...configs: import("typescript-eslint").Config[]) => void; } +>config : (...configs: import("typescript-eslint").Config[]) => void -+>eslintReact : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; } + >eslintReact : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } === eslint-plugin-react.js === - const deprecatedRules = { -@@= skipped -29, +29 lines =@@ - } - - const allRules = { -->allRules : { 'no-unsafe': boolean; } -->{ 'no-unsafe': true} : { 'no-unsafe': boolean; } -+>allRules : { "no-unsafe": boolean; } -+>{ 'no-unsafe': true} : { "no-unsafe": boolean; } - - 'no-unsafe': true - >'no-unsafe' : boolean -@@= skipped -9, +9 lines =@@ - } - +@@= skipped -34, +34 lines =@@ module.exports = { -->module.exports = { plugins: { react: { deprecatedRules, rules: allRules, }, },} : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } -->module.exports : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } + >module.exports = { plugins: { react: { deprecatedRules, rules: allRules, }, },} : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } + >module.exports : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } ->module : { exports: { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; }; } -->exports : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } -->{ plugins: { react: { deprecatedRules, rules: allRules, }, },} : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } -+>module.exports = { plugins: { react: { deprecatedRules, rules: allRules, }, },} : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; } -+>module.exports : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; } -+>module : { "export=": { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; }; } -+>exports : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; } -+>{ plugins: { react: { deprecatedRules, rules: allRules, }, },} : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; }; } - - plugins: { -->plugins : { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; } -->{ react: { deprecatedRules, rules: allRules, }, } : { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; } -+>plugins : { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; } -+>{ react: { deprecatedRules, rules: allRules, }, } : { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; }; } - - react: { -->react : { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; } -->{ deprecatedRules, rules: allRules, } : { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; } -+>react : { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; } -+>{ deprecatedRules, rules: allRules, } : { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { "no-unsafe": boolean; }; } - - deprecatedRules, - >deprecatedRules : { "jsx-sort-default-props": boolean; } - - rules: allRules, -->rules : { 'no-unsafe': boolean; } -->allRules : { 'no-unsafe': boolean; } -+>rules : { "no-unsafe": boolean; } -+>allRules : { "no-unsafe": boolean; } ++>module : { "export=": { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; }; } + >exports : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } + >{ plugins: { react: { deprecatedRules, rules: allRules, }, },} : { plugins: { react: { deprecatedRules: { "jsx-sort-default-props": boolean; }; rules: { 'no-unsafe': boolean; }; }; }; } - }, - }, -@@= skipped -42, +42 lines =@@ +@@= skipped -40, +40 lines =@@ >configs : Config[] module.exports = { config };