Serge Huber created UNOMI-1036:
----------------------------------
Summary: Tracker: convert the source to TypeScript
Key: UNOMI-1036
URL: https://issues.apache.org/jira/browse/UNOMI-1036
Project: Apache Unomi
Issue Type: Sub-task
Components: unomi-tracker
Reporter: Serge Huber
The tracker is already type-checked: it is JavaScript with type comments,
checked in strict mode. Moving to TypeScript makes the code easier to read and
to work on, without changing the code websites load.
* Only TypeScript syntax that compiles away completely, as erasableSyntaxOnly
in tsconfig.json already requires (no enum, namespace or parameter properties),
so the generated JavaScript stays the same.
* The published types (dist/*.d.ts) stay compatible; test/types keeps compiling
the documented configurations.
* The build compiles TypeScript (@babel/preset-typescript or
@rollup/plugin-typescript), after the rollup 4 upgrade.
* Easier after the module split, one module at a time.
Done when the compatibility harness shows no difference.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)