15 lines
279 B
TypeScript
15 lines
279 B
TypeScript
//// [deeplyNestedCheck.ts]
|
|
// Repro from #14794
|
|
|
|
interface DataSnapshot<X = {}> {
|
|
child(path: string): DataSnapshot;
|
|
}
|
|
|
|
interface Snapshot<T> extends DataSnapshot {
|
|
child<U extends keyof T>(path: U): Snapshot<T[U]>;
|
|
}
|
|
|
|
|
|
//// [deeplyNestedCheck.js]
|
|
// Repro from #14794
|