Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5ea1463

Browse filesBrowse files
Anders HejlsbergAnders Hejlsberg
authored andcommitted
Add regression test
1 parent f4fc9ed commit 5ea1463
Copy full SHA for 5ea1463

1 file changed

+9Lines changed: 9 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+9Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.