Skip to content

Conversation

@jim-lake
Copy link
Contributor

Not sure if you want to merge this or not, but basically the old types.d.ts was inaccurate in places and also used any in quite a few places making it problematic to work with in a strict typescript codebase.

Not each language get's its own .d.ts file, mysql.d.ts is the only one I worked through making accurate. The others would be fairly formulaic to generate. It maintains the old types.d.ts for other languages and for people depending on those types. If you import from node-sql-parser/build/mysql you'll get the types from mysql.d.ts.

This includes a large number of tests in test/types/mysql that validate most of the surface area the parser is willing to output an AST and then validates the AST produced fits the types in mysql.d.ts. Its actually fairly useful for parser development too because you can inspect the types and see where the AST might be lacking.

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.

1 participant