Skip to content

Commit 5ea1463

Browse files
Anders HejlsbergAnders Hejlsberg
authored andcommitted
Add regression test
1 parent f4fc9ed commit 5ea1463

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Repro from #14794
2+
3+
interface DataSnapshot<X = {}> {
4+
child(path: string): DataSnapshot;
5+
}
6+
7+
interface Snapshot<T> extends DataSnapshot {
8+
child<U extends keyof T>(path: U): Snapshot<T[U]>;
9+
}

0 commit comments

Comments
 (0)