Skip to content

Commit e0c1085

Browse files
committed
Accept new baselines
1 parent a885894 commit e0c1085

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

tests/baselines/reference/keyofAndIndexedAccess.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,9 @@ declare type Handlers<T> = {
11011101
[K in keyof T]: (t: T[K]) => void;
11021102
};
11031103
declare function on<T>(handlerHash: Handlers<T>): T;
1104-
declare var hashOfEmpty1: {};
1104+
declare var hashOfEmpty1: {
1105+
test: {};
1106+
};
11051107
declare var hashOfEmpty2: {
11061108
test: boolean;
11071109
};

tests/baselines/reference/keyofAndIndexedAccess.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,8 +1793,8 @@ declare function on<T>(handlerHash: Handlers<T>): T
17931793
>T : T
17941794

17951795
var hashOfEmpty1 = on({ test: () => {} }); // {}
1796-
>hashOfEmpty1 : {}
1797-
>on({ test: () => {} }) : {}
1796+
>hashOfEmpty1 : { test: {}; }
1797+
>on({ test: () => {} }) : { test: {}; }
17981798
>on : <T>(handlerHash: Handlers<T>) => T
17991799
>{ test: () => {} } : { test: () => void; }
18001800
>test : () => void

0 commit comments

Comments
 (0)