Skip to content

Vendor dateToTimestampProto #118

New issue

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

Merged
merged 2 commits into from
Aug 16, 2021
Merged

Vendor dateToTimestampProto #118

merged 2 commits into from
Aug 16, 2021

Conversation

inlined
Copy link
Member

@inlined inlined commented Aug 16, 2021

The firebase-functions-test repo was importing an undocumented path for a trivial 13LOC function. Rather than futz with public imports we'll just duplicate this 13LOC of code.

@inlined inlined requested review from mbleigh and taeold August 16, 2021 16:18
import { firestore, app } from 'firebase-admin';
import { has, get, isEmpty, isPlainObject, mapValues } from 'lodash';

import { testApp } from '../app';

import * as http from 'http';

function dateToTimestampProto(timeString?: string) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Return type?

Suggested change
function dateToTimestampProto(timeString?: string) {
function dateToTimestampProto(timeString?: string): {seconds: number, nanos: number} | undefined {

@inlined inlined merged commit fd650d6 into master Aug 16, 2021
@inlined inlined deleted the inlined.fix-import-break branch August 16, 2021 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants