Type alias MigrationPredicate<D>

MigrationPredicate<D>: ((doc) => boolean)

Type Parameters

  • D = firestore.DocumentData

Type declaration

    • (doc): boolean
    • A function that takes a document snapshot and returns a boolean indicating whether to migrate it.

      Parameters

      • doc: firestore.QueryDocumentSnapshot<D>

      Returns boolean

Generated using TypeDoc