Skip to content

Commit

Permalink
Add resourcePicker to ActionExtensionApi interface
Browse files Browse the repository at this point in the history
  • Loading branch information
melissaluu committed Nov 18, 2024
1 parent eb564c6 commit d21d11d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type {StandardApi} from '../standard/standard';
import type {ExtensionTarget as AnyExtensionTarget} from '../../extension-targets';
import type {Data} from '../shared';
import type {ResourcePickerApi} from '../resource-picker/resource-picker';

export interface ActionExtensionApi<ExtensionTarget extends AnyExtensionTarget>
extends StandardApi<ExtensionTarget> {
Expand All @@ -13,4 +14,9 @@ export interface ActionExtensionApi<ExtensionTarget extends AnyExtensionTarget>
* Information about the currently viewed or selected items.
*/
data: Data;

/**
* Renders the [Resource Picker](/docs/api/app-bridge-library/apis/resource-picker), allowing users to select a resource for the extension to use as part of its flow.
*/
resourcePicker: ResourcePickerApi;
}

0 comments on commit d21d11d

Please sign in to comment.