Skip to content

docData return type should include undefined #37

@milo-

Description

@milo-

If the snapshot doesn't exist then the data will be undefined and not T. Is it possible to update this assertion to be as T | undefined?

return doc(ref).pipe(map(snap => snapToData(snap, options) as T));

Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions