-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Description
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? 🤓
jpokrzyk, adamduren, alexbjorlig, muratoreT, eliotstock and 14 more
Metadata
Metadata
Assignees
Labels
No labels