diff --git a/packages/ui-extensions/src/surfaces/admin/api/resource-picker/resource-picker.ts b/packages/ui-extensions/src/surfaces/admin/api/resource-picker/resource-picker.ts index 971ede13f..45875c110 100644 --- a/packages/ui-extensions/src/surfaces/admin/api/resource-picker/resource-picker.ts +++ b/packages/ui-extensions/src/surfaces/admin/api/resource-picker/resource-picker.ts @@ -202,11 +202,11 @@ interface Filters { query?: string; } -export interface ResourcePickerOptions { +export interface ResourcePickerOptions { /** * The type of resource you want to pick. */ - type: 'product' | 'variant' | 'collection'; + type: Type; /** * The action verb appears in the title and as the primary action of the Resource Picker. * @defaultValue 'add' @@ -235,6 +235,6 @@ export interface ResourcePickerOptions { selectionIds?: BaseResource[]; } -export type ResourcePickerApi = ( - options: ResourcePickerOptions, -) => Promise | undefined>; +export type ResourcePickerApi = ( + options: ResourcePickerOptions, +) => Promise | undefined>;