woocommerce/plugins/woocommerce-admin/client/utils/is-woo-express.ts

11 lines
217 B
TypeScript

declare global {
interface Window {
wcCalypsoBridge?: {
isWooExpress: boolean;
};
}
}
export const isWooExpress = (): boolean =>
window.wcCalypsoBridge !== undefined && window.wcCalypsoBridge.isWooExpress;