Skip to content

Commit 3d6dbf4

Browse files
committed
Accept new baselines
1 parent 538b5c8 commit 3d6dbf4

File tree

4 files changed

+7025
-6
lines changed

4 files changed

+7025
-6
lines changed

tests/baselines/reference/typeParameterLeak.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ declare const f: BoxFactoryFactory<BoxTypes>;
2828
const b = f({ x: "", y: "" })?.getBox();
2929
>b : Box<{ x: string; }> | Box<{ y: string; }> | undefined
3030
>f({ x: "", y: "" })?.getBox() : Box<{ x: string; }> | Box<{ y: string; }> | undefined
31-
>f({ x: "", y: "" })?.getBox : (() => Box<{ x: string; }>) | (() => Box<{ y: string; }>) | undefined
31+
>f({ x: "", y: "" })?.getBox : (() => Box<{ y: string; }>) | (() => Box<{ x: string; }>) | undefined
3232
>f({ x: "", y: "" }) : BoxFactory<Box<{ x: string; }>> | BoxFactory<Box<{ y: string; }>> | undefined
3333
>f : ((arg: { x: string; }) => BoxFactory<Box<{ x: string; }>> | undefined) | ((arg: { y: string; }) => BoxFactory<Box<{ y: string; }>> | undefined)
3434
>{ x: "", y: "" } : { x: string; y: string; }
3535
>x : string
3636
>"" : ""
3737
>y : string
3838
>"" : ""
39-
>getBox : (() => Box<{ x: string; }>) | (() => Box<{ y: string; }>) | undefined
39+
>getBox : (() => Box<{ y: string; }>) | (() => Box<{ x: string; }>) | undefined
4040

4141
if (b) {
4242
>b : Box<{ x: string; }> | Box<{ y: string; }> | undefined

tests/baselines/reference/unionOfClassCalls.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@ declare var a: Bar | Baz;
211211
// note, you must annotate `result` for now
212212
a.doThing().then((result: Bar | Baz) => {
213213
>a.doThing().then((result: Bar | Baz) => { // whatever}) : Promise<void>
214-
>a.doThing().then : (<TResult1 = Bar, TResult2 = never>(onfulfilled?: ((value: Bar) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>) | (<TResult1 = Baz, TResult2 = never>(onfulfilled?: ((value: Baz) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>)
214+
>a.doThing().then : (<TResult1 = Baz, TResult2 = never>(onfulfilled?: ((value: Baz) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>) | (<TResult1 = Bar, TResult2 = never>(onfulfilled?: ((value: Bar) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>)
215215
>a.doThing() : Promise<Bar> | Promise<Baz>
216216
>a.doThing : (() => Promise<Bar>) | (() => Promise<Baz>)
217217
>a : Bar | Baz
218218
>doThing : (() => Promise<Bar>) | (() => Promise<Baz>)
219-
>then : (<TResult1 = Bar, TResult2 = never>(onfulfilled?: ((value: Bar) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>) | (<TResult1 = Baz, TResult2 = never>(onfulfilled?: ((value: Baz) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>)
219+
>then : (<TResult1 = Baz, TResult2 = never>(onfulfilled?: ((value: Baz) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>) | (<TResult1 = Bar, TResult2 = never>(onfulfilled?: ((value: Bar) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>)
220220
>(result: Bar | Baz) => { // whatever} : (result: Bar | Baz) => void
221221
>result : Bar | Baz
222222

0 commit comments

Comments
 (0)