@@ -42,34 +42,32 @@ Promise.try((foo) => "Async result", "foo");
4242>try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
4343>foo : Symbol(foo, Decl(promiseTry.ts, 13, 13))
4444
45- // @ts-expect-error too few parameters
4645Promise.try((foo) => "Async result");
4746>Promise.try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
4847>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
4948>try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
50- >foo : Symbol(foo, Decl(promiseTry.ts, 15 , 13))
49+ >foo : Symbol(foo, Decl(promiseTry.ts, 14 , 13))
5150
5251Promise.try((foo: string | undefined) => "Async result", undefined);
5352>Promise.try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
5453>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
5554>try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
56- >foo : Symbol(foo, Decl(promiseTry.ts, 16 , 13))
55+ >foo : Symbol(foo, Decl(promiseTry.ts, 15 , 13))
5756>undefined : Symbol(undefined)
5857
5958Promise.try((foo: string | undefined) => "Async result", "foo");
6059>Promise.try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
6160>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
6261>try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
63- >foo : Symbol(foo, Decl(promiseTry.ts, 17 , 13))
62+ >foo : Symbol(foo, Decl(promiseTry.ts, 16 , 13))
6463
6564Promise.try((foo) => "Async result", undefined);
6665>Promise.try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
6766>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
6867>try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
69- >foo : Symbol(foo, Decl(promiseTry.ts, 18 , 13))
68+ >foo : Symbol(foo, Decl(promiseTry.ts, 17 , 13))
7069>undefined : Symbol(undefined)
7170
72- // @ts-expect-error too many parameters
7371Promise.try(() => "Async result", "foo");
7472>Promise.try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
7573>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
@@ -80,44 +78,42 @@ Promise.try((foo: string, bar: number) => "Async result", "foo", 42);
8078>Promise.try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
8179>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
8280>try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
83- >foo : Symbol(foo, Decl(promiseTry.ts, 23 , 13))
84- >bar : Symbol(bar, Decl(promiseTry.ts, 23 , 25))
81+ >foo : Symbol(foo, Decl(promiseTry.ts, 21 , 13))
82+ >bar : Symbol(bar, Decl(promiseTry.ts, 21 , 25))
8583
86- // @ts-expect-error too many parameters
8784Promise.try((foo: string, bar: number) => "Async result", "foo", 42, "baz");
8885>Promise.try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
8986>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
9087>try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
91- >foo : Symbol(foo, Decl(promiseTry.ts, 25 , 13))
92- >bar : Symbol(bar, Decl(promiseTry.ts, 25 , 25))
88+ >foo : Symbol(foo, Decl(promiseTry.ts, 22 , 13))
89+ >bar : Symbol(bar, Decl(promiseTry.ts, 22 , 25))
9390
94- // @ts-expect-error too few parameters
9591Promise.try((foo: string, bar: number) => "Async result", "foo");
9692>Promise.try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
9793>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
9894>try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
99- >foo : Symbol(foo, Decl(promiseTry.ts, 27 , 13))
100- >bar : Symbol(bar, Decl(promiseTry.ts, 27 , 25))
95+ >foo : Symbol(foo, Decl(promiseTry.ts, 23 , 13))
96+ >bar : Symbol(bar, Decl(promiseTry.ts, 23 , 25))
10197
10298Promise.try((foo: string, bar?: number) => "Async result", "foo");
10399>Promise.try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
104100>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
105101>try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
106- >foo : Symbol(foo, Decl(promiseTry.ts, 28 , 13))
107- >bar : Symbol(bar, Decl(promiseTry.ts, 28 , 25))
102+ >foo : Symbol(foo, Decl(promiseTry.ts, 24 , 13))
103+ >bar : Symbol(bar, Decl(promiseTry.ts, 24 , 25))
108104
109105Promise.try((foo: string, bar?: number) => "Async result", "foo", undefined);
110106>Promise.try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
111107>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
112108>try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
113- >foo : Symbol(foo, Decl(promiseTry.ts, 29 , 13))
114- >bar : Symbol(bar, Decl(promiseTry.ts, 29 , 25))
109+ >foo : Symbol(foo, Decl(promiseTry.ts, 25 , 13))
110+ >bar : Symbol(bar, Decl(promiseTry.ts, 25 , 25))
115111>undefined : Symbol(undefined)
116112
117113Promise.try((foo: string, bar?: number) => "Async result", "foo", 42);
118114>Promise.try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
119115>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
120116>try : Symbol(PromiseConstructor.try, Decl(lib.es2025.promise.d.ts, --, --))
121- >foo : Symbol(foo, Decl(promiseTry.ts, 30 , 13))
122- >bar : Symbol(bar, Decl(promiseTry.ts, 30 , 25))
117+ >foo : Symbol(foo, Decl(promiseTry.ts, 26 , 13))
118+ >bar : Symbol(bar, Decl(promiseTry.ts, 26 , 25))
123119
0 commit comments