9 lines
212 B
TypeScript
9 lines
212 B
TypeScript
// Repro from #14794
|
|
|
|
interface DataSnapshot<X = {}> {
|
|
child(path: string): DataSnapshot;
|
|
}
|
|
|
|
interface Snapshot<T> extends DataSnapshot {
|
|
child<U extends Extract<keyof T, string>>(path: U): Snapshot<T[U]>;
|
|
}
|