API reference > @kontsedal/olas-codemod
olas-codemod package
Functions
Function | Description |
|---|---|
The CLI. Returns the exit code: 0 when the run finished, TODOs or not; 1 for a usage error or a project with no source files. | |
Run the transforms over the files in memory, in order, and report what each did. | |
The files the codemod may rewrite: the project's own sources, not declaration files, not |
Variables
Variable | Description |
|---|---|
| |
| |
The lifetime-owned primitives are free functions that take | |
| |
| |
A | |
Identity is a required | |
A mutation's | |
| |
| |
| |
Report every import of a core export 1.0 removes. Nothing is rewritten. | |
Renames of exports whose behaviour is unchanged: the React | |
A 1.0 root is a handle with the app's api on | |
The query engine is explicit, and root-wide query defaults live on it: | |
Every duration option in 1.0 is named for its unit role: | |
Every 0.8 → 1.0 transform, in the order they must run. The type-driven transforms run first, on code that still resolves the 0.8 types. A rewrite to a 1.0 name leaves an expression the 0.8 declarations cannot type: after | |
|
Type Aliases
Type Alias | Description |
|---|---|
Where the CLI runs and writes its report. | |
One rename the | |
Options for | |
What | |
A site the codemod found but could not rewrite safely. | |
One 0.8 → 1.0 rewrite. | |
Shared settings every transform receives. | |
What one transform did to the files it was given. | |
What one transform did across the run. |