File tree Expand file tree Collapse file tree 6 files changed +25
-18
lines changed
packages/ui-extensions/src/surfaces Expand file tree Collapse file tree 6 files changed +25
-18
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @shopify/ui-extensions ' : patch
3+ ---
4+
5+ Fix shopify global declaration
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ export * from './admin/components';
33export * from './admin/extension-targets' ;
44export * from './admin/extension' ;
55export * from './admin/shared' ;
6+ export * from './admin/globals' ;
Original file line number Diff line number Diff line change @@ -6,3 +6,10 @@ export interface ShopifyGlobal {
66 extend : ExtensionTargets [ ExtensionTarget ] ,
77 ) : void ;
88}
9+
10+ declare global {
11+ // conflicts with build/ts/globals.d.ts
12+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
13+ // @ts -ignore
14+ const shopify : ShopifyGlobal ;
15+ }
Original file line number Diff line number Diff line change @@ -9,10 +9,8 @@ export interface ShopifyGlobal {
99}
1010
1111declare global {
12- interface WorkerGlobalScope {
13- // conflicts with packages/checkout-ui-extensions/build/ts/globals.d.ts
14- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
15- // @ts -ignore
16- readonly le_shopify : ShopifyGlobal ;
17- }
12+ // conflicts with build/ts/globals.d.ts
13+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
14+ // @ts -ignore
15+ const shopify : ShopifyGlobal ;
1816}
Original file line number Diff line number Diff line change @@ -9,10 +9,8 @@ export interface ShopifyGlobal {
99}
1010
1111declare global {
12- interface WorkerGlobalScope {
13- // conflicts with packages/checkout-ui-extensions/build/ts/globals.d.ts
14- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
15- // @ts -ignore
16- readonly le_shopify : ShopifyGlobal ;
17- }
12+ // conflicts with build/ts/globals.d.ts
13+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
14+ // @ts -ignore
15+ const shopify : ShopifyGlobal ;
1816}
Original file line number Diff line number Diff line change @@ -9,10 +9,8 @@ export interface ShopifyGlobal {
99}
1010
1111declare global {
12- interface WorkerGlobalScope {
13- // conflicts with build/ts/globals.d.ts
14- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
15- // @ts -ignore
16- readonly shopify : ShopifyGlobal ;
17- }
12+ // conflicts with build/ts/globals.d.ts
13+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
14+ // @ts -ignore
15+ const shopify : ShopifyGlobal ;
1816}
You can’t perform that action at this time.
0 commit comments