Skip to content

Universal DevTools Kit SDK


Universal DevTools Kit SDK / @u-devtools/kit / / AppContext

Interface: AppContext ​

Defined in: index.ts:25

Properties ​

api? ​

optional api: undefined

Defined in: index.ts:32

ClientApi is only available in client context. In app context (overlay), api is not provided as it runs on the page. For app plugins, use module context (Module Singleton) to store the bridge.


bridge ​

bridge: AppBridge<any>

Defined in: index.ts:26


onCleanup() ​

onCleanup: (fn) => void

Defined in: index.ts:37

Registers a cleanup function that will be called when the plugin is removed (e.g., during HMR or overlay unmounting).

Parameters ​

ParameterType
fn() => void

Returns ​

void

Released under the MIT License.