Skip to content

Commit a34f988

Browse files
Accepted baselines.
1 parent 57938e6 commit a34f988

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

tests/baselines/reference/omitTypeTestErrors01.errors.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tests/cases/compiler/omitTypeTestErrors01.ts(11,16): error TS2339: Property 'c' does not exist on type 'Pick<Foo, "a" | "b">'.
2-
tests/cases/compiler/omitTypeTestErrors01.ts(15,16): error TS2339: Property 'b' does not exist on type 'Pick<Foo, "a">'.
1+
tests/cases/compiler/omitTypeTestErrors01.ts(11,16): error TS2339: Property 'c' does not exist on type 'Omit<Foo, "c">'.
2+
tests/cases/compiler/omitTypeTestErrors01.ts(15,16): error TS2339: Property 'b' does not exist on type 'Omit<Foo, "c" | "b">'.
33

44

55
==== tests/cases/compiler/omitTypeTestErrors01.ts (2 errors) ====
@@ -15,13 +15,13 @@ tests/cases/compiler/omitTypeTestErrors01.ts(15,16): error TS2339: Property 'b'
1515
export function getBarC(bar: Bar) {
1616
return bar.c;
1717
~
18-
!!! error TS2339: Property 'c' does not exist on type 'Pick<Foo, "a" | "b">'.
18+
!!! error TS2339: Property 'c' does not exist on type 'Omit<Foo, "c">'.
1919
}
2020

2121
export function getBazB(baz: Baz) {
2222
return baz.b;
2323
~
24-
!!! error TS2339: Property 'b' does not exist on type 'Pick<Foo, "a">'.
24+
!!! error TS2339: Property 'b' does not exist on type 'Omit<Foo, "c" | "b">'.
2525
}
2626

2727

tests/baselines/reference/omitTypeTestErrors01.types

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@ interface Foo {
1111
}
1212

1313
export type Bar = Omit<Foo, "c">;
14-
>Bar : Pick<Foo, "a" | "b">
14+
>Bar : Omit<Foo, "c">
1515

1616
export type Baz = Omit<Foo, "b" | "c">;
17-
>Baz : Pick<Foo, "a">
17+
>Baz : Omit<Foo, "c" | "b">
1818

1919
export function getBarC(bar: Bar) {
20-
>getBarC : (bar: Pick<Foo, "a" | "b">) => any
21-
>bar : Pick<Foo, "a" | "b">
20+
>getBarC : (bar: Omit<Foo, "c">) => any
21+
>bar : Omit<Foo, "c">
2222

2323
return bar.c;
2424
>bar.c : any
25-
>bar : Pick<Foo, "a" | "b">
25+
>bar : Omit<Foo, "c">
2626
>c : any
2727
}
2828

2929
export function getBazB(baz: Baz) {
30-
>getBazB : (baz: Pick<Foo, "a">) => any
31-
>baz : Pick<Foo, "a">
30+
>getBazB : (baz: Omit<Foo, "c" | "b">) => any
31+
>baz : Omit<Foo, "c" | "b">
3232

3333
return baz.b;
3434
>baz.b : any
35-
>baz : Pick<Foo, "a">
35+
>baz : Omit<Foo, "c" | "b">
3636
>b : any
3737
}
3838

tests/baselines/reference/omitTypeTests01.symbols

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ export function getBarA(bar: Bar) {
2828
>Bar : Symbol(Bar, Decl(omitTypeTests01.ts, 4, 1))
2929

3030
return bar.a;
31-
>bar.a : Symbol(a, Decl(omitTypeTests01.ts, 0, 15))
31+
>bar.a : Symbol(a)
3232
>bar : Symbol(bar, Decl(omitTypeTests01.ts, 9, 24))
33-
>a : Symbol(a, Decl(omitTypeTests01.ts, 0, 15))
33+
>a : Symbol(a)
3434
}
3535

3636
export function getBazA(baz: Baz) {
@@ -39,9 +39,9 @@ export function getBazA(baz: Baz) {
3939
>Baz : Symbol(Baz, Decl(omitTypeTests01.ts, 6, 33))
4040

4141
return baz.a;
42-
>baz.a : Symbol(a, Decl(omitTypeTests01.ts, 0, 15))
42+
>baz.a : Symbol(a)
4343
>baz : Symbol(baz, Decl(omitTypeTests01.ts, 13, 24))
44-
>a : Symbol(a, Decl(omitTypeTests01.ts, 0, 15))
44+
>a : Symbol(a)
4545
}
4646

4747

tests/baselines/reference/omitTypeTests01.types

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@ interface Foo {
1111
}
1212

1313
export type Bar = Omit<Foo, "c">;
14-
>Bar : Pick<Foo, "a" | "b">
14+
>Bar : Omit<Foo, "c">
1515

1616
export type Baz = Omit<Foo, "b" | "c">;
17-
>Baz : Pick<Foo, "a">
17+
>Baz : Omit<Foo, "c" | "b">
1818

1919
export function getBarA(bar: Bar) {
20-
>getBarA : (bar: Pick<Foo, "a" | "b">) => string
21-
>bar : Pick<Foo, "a" | "b">
20+
>getBarA : (bar: Omit<Foo, "c">) => string
21+
>bar : Omit<Foo, "c">
2222

2323
return bar.a;
2424
>bar.a : string
25-
>bar : Pick<Foo, "a" | "b">
25+
>bar : Omit<Foo, "c">
2626
>a : string
2727
}
2828

2929
export function getBazA(baz: Baz) {
30-
>getBazA : (baz: Pick<Foo, "a">) => string
31-
>baz : Pick<Foo, "a">
30+
>getBazA : (baz: Omit<Foo, "c" | "b">) => string
31+
>baz : Omit<Foo, "c" | "b">
3232

3333
return baz.a;
3434
>baz.a : string
35-
>baz : Pick<Foo, "a">
35+
>baz : Omit<Foo, "c" | "b">
3636
>a : string
3737
}
3838

0 commit comments

Comments
 (0)