Skip to content

Commit 522a179

Browse files
committed
feat: remove code
1 parent 318ed73 commit 522a179

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.eslintrc.json

+12
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,18 @@
237237
"ecmaVersion": 12,
238238
"sourceType": "module"
239239
}
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+
}
240252
}
241253
]
242254
}

src/client/library/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export function parseQuery(key: string): any {
134134
return queryMap[key]
135135
}
136136

137-
export const to = (promise: any) => {
137+
export const to = (promise: any): Promise<any> => {
138138
if (!promise) {
139139
return new Promise((resolve, reject) => {
140140
reject(new Error('requires promises as the param'))

0 commit comments

Comments
 (0)