max-bridge
v0.0.2
Published
TypeScript types for the MAX Bridge WebApp SDK
Downloads
309
Maintainers
Readme
max-bridge
TypeScript declarations for the MAX Bridge WebApp SDK from max-web-app.js.
Usage
Add the package to a global declarations file, for example src/max-bridge.d.ts:
/// <reference types="max-bridge" />
interface Window {
WebApp: import('max-bridge').MaxBridgeWebApp
}Then use window.WebApp in a project that loads max-web-app.js:
window.WebApp.ready()