Hacker News new | ask | show | jobs
by sovietmudkipz 2805 days ago
This is a neat project.

I would encourage more development be done to have the type cover more of the front end code. Your development environment must not be of much help due to the heavy use of the "any" type throughout the codebase, which essentially escapes out of the type system.

1 comments

Thanks, it started out as regular, valid JS, then I figured I might as well convert it to TypeScript, and I did so (perhaps too) quickly. I do plan to add stronger typing later.
What advantages did you get from typescript? Seems like type safety is a huge trade off from what you lost by adding those amounts of complexity, especially when you’re not really utilising it.
You'd get more benefit if you're developing API where random others are consuming your code for them to use API properly.

But still, it can still save you from obvious mistakes even for a one man project.

I agree but I’d pick graphql for that instead of typescript.
Not sure TypeScript and GraphQL are mutually exclusive.
They aren’t, but graphql would give you safer types in your api than typescript.
Honestly, I'm using it for it's marketability. I haven't yet found it particularly useful.