You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
Add support for TypeScript, so that autocomplete and other developer tooling works.
(Optional): Suggest A Solution
Solution 1: Rewrite in TypeScript
Pretty self explanatory. Would probably take weeks because TypeScript usually messes you up at edge cases. This would automatically generate type definitions when building to JavaScript.
Solution 2:
Create .d.ts file. This would have to be maintained "separately" if the code base stays in plain JavaScript. Separately means here that you might forget to update the .d.ts file and functions don't conform to it.
Comparison
Solution 1 (rewrite) is certainly more work than solution 2 (type declarations). TypeScript is widely used right now and many developers would consider it easier to contribute to the codebase after solution 1, if it was fully written in TypeScript - (which may or may not be objectively true).
(Optional): Context
Its not blocking anything, but it makes development a little harder because you always have to check out the docs and (depending on the strictness of your config) TypeScript constantly yells at you for missing types.
The text was updated successfully, but these errors were encountered:
Issue To Be Solved
Add support for TypeScript, so that autocomplete and other developer tooling works.
(Optional): Suggest A Solution
Solution 1: Rewrite in TypeScript
Pretty self explanatory. Would probably take weeks because TypeScript usually messes you up at edge cases. This would automatically generate type definitions when building to JavaScript.
Solution 2:
Create
.d.ts
file. This would have to be maintained "separately" if the code base stays in plain JavaScript. Separately means here that you might forget to update the.d.ts
file and functions don't conform to it.Comparison
Solution 1 (rewrite) is certainly more work than solution 2 (type declarations). TypeScript is widely used right now and many developers would consider it easier to contribute to the codebase after solution 1, if it was fully written in TypeScript - (which may or may not be objectively true).
(Optional): Context
Its not blocking anything, but it makes development a little harder because you always have to check out the docs and (depending on the strictness of your config) TypeScript constantly yells at you for missing types.
The text was updated successfully, but these errors were encountered: