We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exp
I can't figure out how to use ServerValue.TIMESTAMP in the new RTDB SDK.
ServerValue.TIMESTAMP
I tried this:
const { getDatabase, ServerValue } = require("firebase/database");
But tsc says:
tsc
'ServerValue' only refers to a type, but is being used as a value here
Looking at the exported types, here's where it's defined:
/** * @public */ export interface ServerValue { TIMESTAMP: object; increment(delta: number): object; }
Seems that we need to export an object, not just an interface
interface
See: firebase/snippets-web#98
See above.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
[REQUIRED] Describe your environment
exp
[REQUIRED] Describe the problem
I can't figure out how to use
ServerValue.TIMESTAMP
in the new RTDB SDK.I tried this:
But
tsc
says:Looking at the exported types, here's where it's defined:
Seems that we need to export an object, not just an
interface
Steps to reproduce:
See:
firebase/snippets-web#98
Relevant Code:
See above.
The text was updated successfully, but these errors were encountered: