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

timeago: migrate to TypeScript #226

Merged
merged 1 commit into from
Apr 16, 2024
Merged

timeago: migrate to TypeScript #226

merged 1 commit into from
Apr 16, 2024

Conversation

liamwhite
Copy link
Contributor

This moves all of the pretty timestamp conversion logic into TypeScript. There should be no effective changes to the logic here. Two uses of timeAgo outside the file were converted to import the function directly instead of using the version on window.booru - the version attached to window.booru is preserved for userscript compatibility only.

This has 100% test coverage in unit tests and has also been manually integration tested.

@liamwhite liamwhite merged commit 33a7133 into master Apr 16, 2024
4 checks passed
@liamwhite liamwhite deleted the timeago-ts branch April 16, 2024 12:02
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