Consider using TypeScript #24
Labels
No labels
bug
c:haku
c:rkgk backend
c:rkgk frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: liquidex/rkgk#24
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I like not having additional build steps. However, developing the rkgk frontend is quite a pain without access to type annotations, so I've been considering ways on how to add support for TypeScript in the project.
tsc
is kind of slow, which makes it a hard sell, as I prefer fast builds, but other TypeScript compilers are not as available from system package managers.tsc
instead.)swc
seems like a promising Rust-native alternative, but it has no easy introduction on how to integrate it into an existing Rust project. Therefore I'd need to do some serious research before integrating it into our pipeline.I timed tsc on rkgk and it looks just about bearable:
I might consider integrating it into the build later to see how I feel about it.
You probably don't want
swc
, because it doesn't support type checking:I was looking for an alternative to
tsc
for one of my projects a few years ago, and from my experience, if you want type checking from TypeScript then I think your best option is stilltsc
. There are ways to "mix"swc
andtsc
, runningtsc
in the background, etc., but ymmv.Mixing
swc
withtsc
was what I had in mind - the LSP still shows you errors as you type, plus we could runtsc
to catch them in CI. I just don't want it slowing down my iteration types.