We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad17d45 commit 1009eb2Copy full SHA for 1009eb2
utils/getCollection.ts
@@ -10,10 +10,10 @@ export async function getCollection<T>(collection: string): Promise<any> {
10
let __requested_coll: T[] | null = null
11
return new Promise((resolve, reject) => {
12
_database_src
13
- .on('error' , (err) => {
+ .on('error' , (err : any) => {
14
reject(new Error(err.message))
15
})
16
- .on("data", (chunk) => {
+ .on("data", (chunk: any) => {
17
database += chunk.toString("utf-8")
18
19
.on("end", async () => {
0 commit comments