似乎没有导出像DocumentReference,CollectionReference等类。有没有办法导入这些类?
答案 0 :(得分:0)
使用打字稿,这有效:
decomposed = signal.welch(x, fs = Fs, nperseg = Fs*4, noverlap = Fs*2)
import * as firebase from "firebase"
答案 1 :(得分:0)
npm install --save firebase
import * as firebase from 'firebase/app'
import DocumentReference = firebase.firestore.DocumentReference
posts.forEach((doc: DocumentReference) => {
doc.ref.delete()
})