Skip to content

Request: Pure Typescript implementation sample #8

@ahaverty

Description

@ahaverty

I'm struggling to get a pure typescript implementation working with this lib.
I've managed to get it working with requires and few type aliases to make it friendlier
e.g:

const test: FeaturesList = require('firebase-functions-test')({
    databaseURL: `https://${projectId}.firebaseio.com`,
    storageBucket: `${projectId}.appspot.com`,
    projectId: projectId,
}, `./service-accounts/${projectId}-key.json`);

//..and in the after:
(test as any).cleanup();

Tying a pure typescript import doesn't seem to be initializing things properly (errors about not-a-project.firebaseapp for example) and the definitions seem to be different than the samples (the constructor wants a single parameter versus the two in the above sample and the js samples)

Rather than raising an issue for everything I can't get to work, would it be possible to get a typescript sample? 🤓

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions