Skip to content

Commit 3c3909b

Browse files
authored
update baseline (#50252)
1 parent 5f64ae8 commit 3c3909b

4 files changed

+6
-10
lines changed

tests/baselines/reference/narrowingUnionToUnion.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ function f1x(obj) {
371371

372372

373373
//// [narrowingUnionToUnion.d.ts]
374-
declare type Falsy = false | 0 | 0n | '' | null | undefined;
374+
type Falsy = false | 0 | 0n | '' | null | undefined;
375375
declare function isFalsy(value: unknown): value is Falsy;
376376
declare function fx1(x: string | number | undefined): void;
377377
declare function fx2<T>(x: T | undefined): void;
@@ -411,7 +411,7 @@ declare function isMaybeZero(value: number | null | undefined): value is 0 | nul
411411
declare function isEmptyArray<T>(value: T[]): value is [];
412412
declare function isMaybeEmptyArray<T>(value: T[] | null | undefined): value is [] | null | undefined;
413413
declare const TEST_CASES: (((value: string) => void) | ((value: number) => void) | ((value: string[]) => void))[];
414-
declare type EmptyString = '' | null | undefined;
414+
type EmptyString = '' | null | undefined;
415415
declare function isEmpty(value: string | EmptyString): value is EmptyString;
416416
declare let test: string | null | undefined;
417417
declare function assert<T>(value: any): asserts value is T;

tests/baselines/reference/parseAssertEntriesError.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ ImportInterface;
4343

4444

4545
//// [index.d.ts]
46-
export declare type LocalInterface = import("pkg", { assert: {} });
46+
export type LocalInterface = import("pkg", { assert: {} });
4747
export declare const a: any;
4848
export declare const b: any;

tests/baselines/reference/typeTagOnFunctionReferencesGeneric.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,5 @@ inJsArrow(2); // no error gets linted as expected
3737

3838

3939
//// [typeTagOnFunctionReferencesGeneric.d.ts]
40-
/**
41-
* @typedef {<T>(m : T) => T} IFn
42-
*/
43-
/**@type {IFn}*/
44-
export function inJs<T>(l: T): T;
40+
export function inJs<T>(m: T): T;
4541
export type IFn = <T>(m: T) => T;

tests/baselines/reference/typeTagOnFunctionReferencesGeneric.types

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
/**@type {IFn}*/
77
export function inJs(l) {
8-
>inJs : <T>(l: T) => T
8+
>inJs : <T>(m: T) => T
99
>l : T
1010

1111
return l;
1212
>l : T
1313
}
1414
inJs(1); // lints error. Why?
1515
>inJs(1) : 1
16-
>inJs : <T>(l: T) => T
16+
>inJs : <T>(m: T) => T
1717
>1 : 1
1818

1919
/**@type {IFn}*/

0 commit comments

Comments
 (0)