Skip to content

Typescript types to use both Admin SDK and Client SDK #8050

@maelp

Description

@maelp

Operating System

osX

Browser Version

Google

Firebase SDK Version

latest

Firebase SDK Product:

Firestore

Describe your project's tooling

pnpm

Describe the problem

I want to create a util lib which can be used both in the backend and in the frontend, and I'd like to make it possible to type a firestore "db" object that can be used when instantiated both with a Admin SDK admin.firestore or Client SDK app().firestore

Steps and code to reproduce issue

None

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions