Skip to content

Commit 2731617

Browse files
authored
🤖 Merge PR DefinitelyTyped#73050 Add copilot to Context by @mikepenaMS
1 parent 77d286b commit 2731617

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

types/powerapps-component-framework/componentframework.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,7 @@ declare namespace ComponentFramework {
790790
* Fluent v9 theming
791791
*/
792792
fluentDesignLanguage?: FluentDesignState;
793+
copilot: Copilot;
793794
}
794795

795796
type IEventBag = Record<string, (params?: unknown) => void>;

types/powerapps-component-framework/powerapps-component-framework-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,6 @@ const mcsResponseTest: ComponentFramework.MCSResponse = {
719719
};
720720

721721
const copilotTest: ComponentFramework.Copilot = {
722-
executeEvent: (eventName: string, eventData?: any) => Promise.resolve([mcsResponseTest]),
722+
executeEvent: (eventName: string, parameters: Record<string, unknown>) => Promise.resolve([mcsResponseTest]),
723723
executePrompt: (promptText: string) => Promise.resolve([mcsResponseTest]),
724724
};

0 commit comments

Comments
 (0)