FieldValue
Value type of the field at
Path
.
Import
import { FieldValue } from "@hyper-fetch/firebase-admin"
Source
Package
Preview
type FieldValue<Doc,Path,Separator> = IsAny<Doc> extends true ? any : Path extends void ? Key extends keyof Doc ? FieldValue<NonNullable<Doc[Key]>, Rest, Separator> : never : Path extends keyof Doc ? Doc[Path] : never;

