Skip to content

collection function has no generic type #3073

@zadokdaniel

Description

@zadokdaniel

Version info

Angular:
12.2.0
Firebase:
9.4.0
AngularFire:
7.2.0

How to reproduce these conditions

import {
collection,
} from '@angular/fire/firestore';

Expected behavior

collection suppose to receive generic type of collection documents interface. as stated in docs

import { collection } from '@angular/fire/firestore';
collection(firestore, 'foo') // CollectionReference

Actual behavior

generic type is not configured, hence causing a problem on passing to update and doc functions with the generic type of the interface set
Code_Y7nW5tuIqt
chrome_9x67l0gpG5

.

Metadata

Metadata

Assignees

No one assigned

    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