Upgrade Typescript to move configuration from const to let #2853
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Upgrade of Typescript version to 5.5.4 to allow creation of d.ts file with let instead of const which seems to be the case with version 5.1 and above and this hopefully will allow typescript users to modify config items that were blocked from re-assignment with const.
tested with all recent releases of typescript and 5.5.4 have new type generation rules that seem to respect the jsdoc type annotations better. see Node Reuse in Declaration Emit in https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/
Also removed the duplicated src/htmx.d.ts file that is no longer used for the distribution? need to verify we no longer need to keep maintaining this file manually.
Resolved one type check for HttpVerb detected by updated typescript.
Corresponding issue:
#2850
Testing
Ran test suite and but I have not tested the generated d.ts file in a typescript project to confirm it resolves the original problem
Checklist
master
for website changes,dev
forsource changes)
approved via an issue
npm run test
) and verified that it succeeded