We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 318ed73 commit 522a179Copy full SHA for 522a179
.eslintrc.json
@@ -237,6 +237,18 @@
237
"ecmaVersion": 12,
238
"sourceType": "module"
239
}
240
+ },
241
+ {
242
+ // enable the rule specifically for TypeScript files
243
+ "files": ["*.js", "*.ts"],
244
+ "rules": {
245
+ "@typescript-eslint/explicit-module-boundary-types": [
246
+ "error",
247
248
+ "allowArgumentsExplicitlyTypedAsAny":true
249
+ }
250
+ ]
251
252
253
]
254
src/client/library/utils.ts
@@ -134,7 +134,7 @@ export function parseQuery(key: string): any {
134
return queryMap[key]
135
136
137
-export const to = (promise: any) => {
+export const to = (promise: any): Promise<any> => {
138
if (!promise) {
139
return new Promise((resolve, reject) => {
140
reject(new Error('requires promises as the param'))
0 commit comments