ajvincent / composite-collection

Composing Maps, WeakMaps, Sets and WeakSets into compiled classes
Mozilla Public License 2.0
1 stars 0 forks source link

Validate code against TypeScript linting #76

Closed ajvincent closed 2 years ago

ajvincent commented 2 years ago

https://typescript-eslint.io/

I don't use TypeScript in my personal projects, but I'm starting to see the appeal of it. Static type checking could save a lot, particularly on validations later.

ajvincent commented 2 years ago

The TypeScript playground suggests that I haven't delivered the home run yet, even though eslint passes. So I've checked this in on the typescript-0.5.0 branch.

ajvincent commented 2 years ago

If I really wanted to generate TypeScript modules - and that's a big if - I could see an option for CompileTimeOptions triggering the TypeScript annotations and writing the files.

ajvincent commented 2 years ago

I'm going in a different direction: TypeScript files and TypeScript generating code will live in a subdirectory, appropriately named "typescript".