API reference > @kontsedal/olas-codemod > rootApi
rootApi variable
A 1.0 root is a handle with the app's api on .api. The type checker tells a 0.8 root apart by its controls, so root.increment() → root.api.increment() rewrites only where the type proves increment is api.
Signature:
typescript
rootApi: Transform