Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

UpdateData

Update data (for use with {@link (updateDoc:1)}) that consists of field paths (e.g. 'foo' or 'foo.baz') mapped to values. Fields that contain dots reference nested fields within the document. FieldValues can be passed in as property values.

type UpdateData<T> = T extends Primitive ? T : T extends {} ? [K in keyof T]?: UpdateData<T[K]> | FieldValue & NestedUpdateFields<T> : Partial<T>;

§Type Parameters

§Type

§
T extends Primitive ? T : T extends {} ? [K in keyof T]?: UpdateData<T[K]> | FieldValue & NestedUpdateFields<T> : Partial<T>
[src]