@shopify/ui-extensions
Advanced tools
Comparing version 0.0.0-snapshot-20250224221936 to 0.0.0-snapshot-20250226161358
@@ -25,3 +25,3 @@ 'use strict'; | ||
} | ||
(_shopify = globalThis.shopify) === null || _shopify === void 0 ? void 0 : _shopify.extend(target, extension, '@ui_extension_version:0.0.0-snapshot-20250224221936@'); | ||
(_shopify = globalThis.shopify) === null || _shopify === void 0 ? void 0 : _shopify.extend(target, extension, '@ui_extension_version:0.0.0-snapshot-20250226161358@'); | ||
return extension; | ||
@@ -28,0 +28,0 @@ }; |
import type { ExtensionTargets } from './extension-targets'; | ||
export interface ShopifyGlobal { | ||
extend<ExtensionTarget extends keyof ExtensionTargets>(target: ExtensionTarget, extend: ExtensionTargets[ExtensionTarget], version?: string): void; | ||
} | ||
declare global { | ||
const shopify: ShopifyGlobal; | ||
} | ||
export type TargetApi<ExtensionTarget extends keyof ExtensionTargets> = Parameters<ExtensionTargets[ExtensionTarget]>[1]; | ||
//# sourceMappingURL=globals.d.ts.map |
{ | ||
"name": "@shopify/ui-extensions", | ||
"version": "0.0.0-snapshot-20250224221936", | ||
"version": "0.0.0-snapshot-20250226161358", | ||
"scripts": { | ||
@@ -19,2 +19,5 @@ "docs:admin": "bash ./docs/surfaces/admin/build-docs.sh", | ||
"./build/ts/surfaces/admin.d.ts" | ||
], | ||
"admin.*": [ | ||
"./build/ts/surfaces/admin/*.d.ts" | ||
] | ||
@@ -21,0 +24,0 @@ } |
import type {ExtensionTargets} from './extension-targets'; | ||
export interface ShopifyGlobal { | ||
extend<ExtensionTarget extends keyof ExtensionTargets>( | ||
target: ExtensionTarget, | ||
extend: ExtensionTargets[ExtensionTarget], | ||
version?: string, | ||
): void; | ||
} | ||
declare global { | ||
// conflicts with build/ts/globals.d.ts | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
const shopify: ShopifyGlobal; | ||
} | ||
export type TargetApi<ExtensionTarget extends keyof ExtensionTargets> = | ||
Parameters<ExtensionTargets[ExtensionTarget]>[1]; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
214
694853
18112