Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[FR] adding toJSON property to the Admin SDK Timestamp class

Open
#2,412 2 comments 3 reactions 1 assignee View on GitHub

@lahirumaramba is already working on this.

Since Dec 20, 2023.

Assessment

This issue has not been assessed yet.

Description

api: firestore type: feature request

Is your feature request related to a problem? Please describe.
Working in monorepos or other situations with shared Typescript interfaces is complicated because toJSON property is missing on the Admin SDK Timestamp definition

Can firebase-admin package and firebase package share same type definition of some common class?
For example firebase-admin Timestamp class is defined here but firebase Timestamp class is defined here and they are different.

Describe the solution you'd like
adding toJSON property to the Admin SDK Timestamp class to make it compatible to firebase Timestamp class.

Describe alternatives you've considered
Split the common class type definition to a separate package?

Additional context
Discussed at #1404 before, but no contributor response after hiranya911 is not active in firebase project.

Dominant language
TypeScript
Stars
1.7k
Forks
419
Avg merge
4d 20h
Merged PRs (30d)
16

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebase-admin-node

All issues in firebase/firebase-admin-node

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.