AlaSQL / alasql

AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.
http://alasql.org
MIT License
6.98k stars 649 forks source link

feat: add database and table types for TypeScript #1855

Closed sytone closed 6 months ago

sytone commented 7 months ago

This change extends the types already present to allow referencing of the database and tables via TypeScript without type errors being shown. It also makes the validations during compilation and IDE based development better.

Thank you for the time you are putting into AlaSQL!

mathiasrw commented 6 months ago

THank you!