API reference > @kontsedal/olas-react > Register
Register interface
Register the app's root type once, and useRoot() returns its api with no type argument. Empty here: the app adds root through declaration merging.
ts
const root = createRoot(appController, { deps })
declare module '@kontsedal/olas-react' {
interface Register {
root: typeof root
}
}Signature:
typescript
interface Register