Skip to content

Commit

Permalink
feat: add from collection to AlaSQL interface type (#1771)
Browse files Browse the repository at this point in the history
  • Loading branch information
sytone committed Aug 14, 2023
1 parent 15e06ce commit 096b2ff
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions types/alasql.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,22 @@ declare module 'alasql' {
[x: string]: userAggregator;
}

interface userFromFunction {
(dataReference: any, options: any, callback: any, index: any, query: any): any;
}

interface userFromFunctionLookUp {
[x: string]: userFromFunction;
}

interface AlaSQL {
options: AlaSQLOptions;
error: Error;
(sql: any, params?: any, cb?: AlaSQLCallback, scope?: any): any;
parse(sql: any): AlaSQLAST;
promise(sql: any, params?: any): Thenable<any>;
fn: userDefinedFunctionLookUp;
from: userFromFunctionLookUp;
aggr: userAggregatorLookUp;
autoval(tablename: string, colname: string, getNext?: boolean): number;
yy: {};
Expand Down

0 comments on commit 096b2ff

Please sign in to comment.