File tree Expand file tree Collapse file tree
tests/baselines/reference Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1101,7 +1101,9 @@ declare type Handlers<T> = {
11011101 [ K in keyof T ] : ( t : T [ K ] ) => void ;
11021102} ;
11031103declare function on < T > ( handlerHash : Handlers < T > ) : T ;
1104- declare var hashOfEmpty1: { } ;
1104+ declare var hashOfEmpty1 : {
1105+ test : { } ;
1106+ } ;
11051107declare var hashOfEmpty2 : {
11061108 test : boolean ;
11071109} ;
Original file line number Diff line number Diff line change @@ -1793,8 +1793,8 @@ declare function on<T>(handlerHash: Handlers<T>): T
17931793>T : T
17941794
17951795var 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
You can’t perform that action at this time.
0 commit comments