Skip to content

Commit 8fb3738

Browse files
committed
Adapt types to fix #2026
1 parent d5c5e7d commit 8fb3738

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

types/alasql.d.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,9 @@ declare module 'alasql' {
153153
interface AlaSQL {
154154
options: AlaSQLOptions;
155155
error: Error;
156-
<T = unknown>(
157-
sql: string,
158-
params?: Record<string, unknown>,
159-
cb?: AlaSQLCallback<T>,
160-
scope?: unknown
161-
): T;
156+
<T = unknown>(sql: string, params?: any, cb?: AlaSQLCallback<T>, scope?: unknown): T;
162157
parse(sql: string): AlaSQLAST;
163-
promise<T = unknown>(sql: string, params?: Record<string, unknown>): Promise<T>;
158+
promise<T = unknown>(sql: string, params?: any): Promise<T>;
164159
fn: userDefinedFunctionLookUp;
165160
from: userFromFunctionLookUp;
166161
aggr: userAggregatorLookUp;

0 commit comments

Comments
 (0)