Skip to content

Commit 1906142

Browse files
committed
Update baselines
1 parent cce2b93 commit 1906142

10 files changed

+552
-484
lines changed

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,7 +2453,7 @@ declare namespace ts {
24532453
messageText: string;
24542454
category: DiagnosticCategory;
24552455
code: number;
2456-
next?: DiagnosticMessageChain;
2456+
next?: DiagnosticMessageChain[];
24572457
}
24582458
interface Diagnostic extends DiagnosticRelatedInformation {
24592459
/** May store more in future. For now, this will simply be `true` to indicate when a diagnostic is an unused-identifier diagnostic. */
@@ -4272,7 +4272,7 @@ declare namespace ts {
42724272
function formatDiagnostics(diagnostics: ReadonlyArray<Diagnostic>, host: FormatDiagnosticsHost): string;
42734273
function formatDiagnostic(diagnostic: Diagnostic, host: FormatDiagnosticsHost): string;
42744274
function formatDiagnosticsWithColorAndContext(diagnostics: ReadonlyArray<Diagnostic>, host: FormatDiagnosticsHost): string;
4275-
function flattenDiagnosticMessageText(messageText: string | DiagnosticMessageChain | undefined, newLine: string): string;
4275+
function flattenDiagnosticMessageText(diag: string | DiagnosticMessageChain | undefined, newLine: string, indent?: number): string;
42764276
function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): ReadonlyArray<Diagnostic>;
42774277
/**
42784278
* Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions'

tests/baselines/reference/api/typescript.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,7 +2453,7 @@ declare namespace ts {
24532453
messageText: string;
24542454
category: DiagnosticCategory;
24552455
code: number;
2456-
next?: DiagnosticMessageChain;
2456+
next?: DiagnosticMessageChain[];
24572457
}
24582458
interface Diagnostic extends DiagnosticRelatedInformation {
24592459
/** May store more in future. For now, this will simply be `true` to indicate when a diagnostic is an unused-identifier diagnostic. */
@@ -4272,7 +4272,7 @@ declare namespace ts {
42724272
function formatDiagnostics(diagnostics: ReadonlyArray<Diagnostic>, host: FormatDiagnosticsHost): string;
42734273
function formatDiagnostic(diagnostic: Diagnostic, host: FormatDiagnosticsHost): string;
42744274
function formatDiagnosticsWithColorAndContext(diagnostics: ReadonlyArray<Diagnostic>, host: FormatDiagnosticsHost): string;
4275-
function flattenDiagnosticMessageText(messageText: string | DiagnosticMessageChain | undefined, newLine: string): string;
4275+
function flattenDiagnosticMessageText(diag: string | DiagnosticMessageChain | undefined, newLine: string, indent?: number): string;
42764276
function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): ReadonlyArray<Diagnostic>;
42774277
/**
42784278
* Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions'

tests/baselines/reference/checkJsxChildrenCanBeTupleType.errors.txt

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
tests/cases/conformance/jsx/checkJsxChildrenCanBeTupleType.tsx(17,17): error TS2755: No overload matches this call.
1+
tests/cases/conformance/jsx/checkJsxChildrenCanBeTupleType.tsx(17,17): error TS2763: No overload matches this call.
2+
Overload 1 of 2, '(props: Readonly<ResizablePanelProps>): ResizablePanel', gave the following error.
3+
Type '{ children: [Element, Element, Element]; }' is not assignable to type 'Readonly<ResizablePanelProps>'.
4+
Types of property 'children' are incompatible.
5+
Type '[Element, Element, Element]' is not assignable to type '[ReactNode, ReactNode]'.
6+
Types of property 'length' are incompatible.
7+
Type '3' is not assignable to type '2'.
8+
Overload 2 of 2, '(props: ResizablePanelProps, context?: any): ResizablePanel', gave the following error.
9+
Type '{ children: [Element, Element, Element]; }' is not assignable to type 'Readonly<ResizablePanelProps>'.
10+
Types of property 'children' are incompatible.
11+
Type '[Element, Element, Element]' is not assignable to type '[ReactNode, ReactNode]'.
212

313

414
==== tests/cases/conformance/jsx/checkJsxChildrenCanBeTupleType.tsx (1 errors) ====
@@ -20,17 +30,17 @@ tests/cases/conformance/jsx/checkJsxChildrenCanBeTupleType.tsx(17,17): error TS2
2030

2131
const testErr = <ResizablePanel>
2232
~~~~~~~~~~~~~~~~
23-
!!! error TS2755: No overload matches this call.
24-
!!! related TS2760 tests/cases/conformance/jsx/checkJsxChildrenCanBeTupleType.tsx:17:18: Overload 1 of 2, '(props: Readonly<ResizablePanelProps>): ResizablePanel', gave the following error.
25-
Type '{ children: [Element, Element, Element]; }' is not assignable to type 'Readonly<ResizablePanelProps>'.
26-
Types of property 'children' are incompatible.
27-
Type '[Element, Element, Element]' is not assignable to type '[ReactNode, ReactNode]'.
28-
Types of property 'length' are incompatible.
29-
Type '3' is not assignable to type '2'.
30-
!!! related TS2760 tests/cases/conformance/jsx/checkJsxChildrenCanBeTupleType.tsx:17:18: Overload 2 of 2, '(props: ResizablePanelProps, context?: any): ResizablePanel', gave the following error.
31-
Type '{ children: [Element, Element, Element]; }' is not assignable to type 'Readonly<ResizablePanelProps>'.
32-
Types of property 'children' are incompatible.
33-
Type '[Element, Element, Element]' is not assignable to type '[ReactNode, ReactNode]'.
33+
!!! error TS2763: No overload matches this call.
34+
!!! error TS2763: Overload 1 of 2, '(props: Readonly<ResizablePanelProps>): ResizablePanel', gave the following error.
35+
!!! error TS2763: Type '{ children: [Element, Element, Element]; }' is not assignable to type 'Readonly<ResizablePanelProps>'.
36+
!!! error TS2763: Types of property 'children' are incompatible.
37+
!!! error TS2763: Type '[Element, Element, Element]' is not assignable to type '[ReactNode, ReactNode]'.
38+
!!! error TS2763: Types of property 'length' are incompatible.
39+
!!! error TS2763: Type '3' is not assignable to type '2'.
40+
!!! error TS2763: Overload 2 of 2, '(props: ResizablePanelProps, context?: any): ResizablePanel', gave the following error.
41+
!!! error TS2763: Type '{ children: [Element, Element, Element]; }' is not assignable to type 'Readonly<ResizablePanelProps>'.
42+
!!! error TS2763: Types of property 'children' are incompatible.
43+
!!! error TS2763: Type '[Element, Element, Element]' is not assignable to type '[ReactNode, ReactNode]'.
3444
<div />
3545
<div />
3646
<div />

0 commit comments

Comments
 (0)