Skip to content

[EngSys] Migrate all EngSys code from JS to TS #43187

@mikeharder

Description

@mikeharder

With node24 supporting type stripping by default, and type transformation with an experimental env var, we should migrate all the EngSys code from JS to TS.

By default, we should start with just type stripping:

Recommended tsconfig.json:

{
  "compilerOptions": {
     "noEmit": true, // Optional - see note below
     "target": "esnext",
     "module": "nodenext",
     "rewriteRelativeImportExtensions": true,
     "erasableSyntaxOnly": true,
     "verbatimModuleSyntax": true
  }
}

If we think it's worth it, we could enable expermental type transformation (eg enums):

- uses: actions/github-script@v9
  env:
    NODE_OPTIONS: --experimental-transform-types

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status

🐝 Dev

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions