Typescript Firebase, Promises Definition File

I am trying to use promises with Firebase in Typescript using this definition file: https://www.nuget.org/packages/firebase.TypeScript.DefinitelyTyped/ But I get this error when trying to use promises: Supplied parameters do not match any signature of call target.I assume this is because definition files do not support promises right? I'm just starting to get Typescript to know if anyone can tell me how can I modify the definition file to support promises?

+4
source share
1 answer

At the time of this writing, the definition file for Firebase supported Promise: firebase.d.ts

es6-prom, tsc ES6. SO: Typescript ES6 Promises

0

Source: https://habr.com/ru/post/1626171/


All Articles