Skip to content

Commit

Permalink
Edit types to fix #2053
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasrw committed Feb 28, 2025
1 parent 7ce1d3c commit 01d2d64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/alasql.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ declare module 'alasql' {

// compiled Statement
interface AlaSQLStatement {
<T = unknown>(params?: Record<string, unknown>, cb?: AlaSQLCallback<T>, scope?: unknown): T;
<T = unknown>(params?: any, cb?: AlaSQLCallback<T>, scope?: unknown): T;
}

// abstract Syntax Tree
Expand Down Expand Up @@ -146,7 +146,7 @@ declare module 'alasql' {
sqlCacheSize: number;
astCache: {[key: string]: unknown};
resetSqlCache(): void;
exec<T = unknown>(sql: string, params?: Record<string, unknown>, cb?: AlaSQLCallback<T>): T;
exec<T = unknown>(sql: string, params?: any, cb?: AlaSQLCallback<T>): T;
autoval(tablename: string, colname: string, getNext: boolean): unknown;
}

Expand Down

0 comments on commit 01d2d64

Please sign in to comment.