Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Even Better TS #307

Merged
merged 9 commits into from
Nov 10, 2024
Merged

Even Better TS #307

merged 9 commits into from
Nov 10, 2024

Conversation

lishaduck
Copy link
Contributor

@lishaduck lishaduck commented Nov 10, 2024

Follow up to #302 (and #186 and #187).

For some reason, these only show up in my ide's search sometimes.
Not sure why, but here's the annotations.
eslint-plugin-jsdoc automatically removes these.
Fair enough for 99% of cases,
but `unicorn/no-object-as-default-parameter`
_correctly_ points out that default objects need to be spread.
This adds back the jsdoc docs for this specific case.
lib/sync-get-worker.js Outdated Show resolved Hide resolved
lishaduck and others added 3 commits November 10, 2024 17:01
I started with uppercasing the `R`.
Then, I replace  `Err` with `Failure` so it doesn't get mixed up with native JS errors.
I did the same with `Ok` and `Success`, so that the constructors line up.
I tried uppercasing the constructors as well, to make it more elmish.*
However, Eslint triggers `new-cap`, so I skipped that one and kept the Task terminology.
Also, because objects are really inconvenient,
I moved it to a folder and used evil barrel exports.

* I tried to come up with a Fable pun, but I couldn't think of one.
Way back a long time ago in jfmengels#186 (comment), @jfmengels asked me to write some comments.

I also updated the workflows to align with recent changes to our test workflow in jfmengels#288.
@lishaduck
Copy link
Contributor Author

Hit rate limits. Will try again later.

@jfmengels jfmengels merged commit af254b5 into jfmengels:main Nov 10, 2024
3 checks passed
@jfmengels
Copy link
Owner

Thank you, these are nice changes!

@lishaduck lishaduck deleted the even-better-ts branch November 11, 2024 01:01
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.

2 participants