Type definitions for App Bridge UI.
npm install @shopify/app-bridge-ui-typesType definitions for App Bridge UI.
Add the types package as a dev dependency:
``bash`
npm i -D @shopify/app-bridge-ui-types
Since App Bridge UI is not imported directly, you need to add the types to your TypeScript configuration in one of the following ways:
`json`
{
"compilerOptions": {
"types": ["@shopify/app-bridge-ui-types"]
}
}
Add the following line at the top of your TypeScript files where you need the types:
`typescript``
///