Lightlines
By forcedotcom

experience-lwc-typescript-migrate

forcedotcom2.2k installs

Typed components with a clear public API.

What it does

Migrate existing Lightning Web Components to typed implementations with declarations exposing only their public API.

When to use it

Use to migrate existing JavaScript components, generate public declarations, finish typing already-renamed components, or replace JSDoc hints with TypeScript types.

How to use it

Give it existing components in a project; it produces typed TypeScript implementations and public API declaration files.

What you provide

  • An existing project

Latest review

What you need · 3

Requires tsc >=4.0.0 and a TypeScript compiler wired into the build, through the SFDX TS pipeline or a standalone compiler step.

Lists jq >=1.6 as a CLI requirement; the consumer-finder uses it to read package directories when sfdx-project.json exists.

Requires the project's Jest test setup to run the component's existing tests and check that behavior remains unchanged.


Access · 0

No additional actions listed.