Skip to content

Declare alasql.compile(), FuncValue nodes and string -> operands in types - #2586

Open
assapir wants to merge 1 commit into
AlaSQL:developfrom
assapir:types/2585-compile-funcvalue-arrow
Open

assapir wants to merge 1 commit into
AlaSQL:developfrom
assapir:types/2585-compile-funcvalue-arrow

Conversation

@assapir

@assapir assapir commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Closes #2585.

Type-only, types/alasql.d.ts:

  • AlaSQL.compile(sql, databaseid?), returning AlaSQLCompiledStatement (AlaSQLStatement plus the .promise() helper alasql.compile attaches).
  • FuncValue (funcid, args?) added to the ExpressionNode union.
  • Op.right widened to ExpressionNode | string: a->b puts the bare name on the right as a string.

Verification

A strict consumer compiled against the new d.ts: 0 errors. The same consumer against develop:

TS2305: Module '"alasql"' has no exported member 'FuncValue'.
TS2339: Property 'compile' does not exist on type 'AlaSQL'.
TS2322: Type '"b"' is not assignable to type 'ExpressionNode | undefined'.

test2317.js passes.

…ypes (AlaSQL#2585)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Declare alasql.compile(), function-call nodes and -> operands in the published types

1 participant