File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
packages/shared/onechat/onechat-browser/attachments
plugins/shared/onechat/public Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export interface AttachmentServiceStartContract {
4242 * @param attachmentType - The type identifier to look up
4343 * @returns The UI definition if registered, undefined otherwise
4444 */
45- getAttachmentUiDefinition : < TAttachment extends AnyAttachment = AnyAttachment > (
45+ getAttachmentUiDefinition : < TAttachment extends UnknownAttachment = UnknownAttachment > (
4646 attachmentType : string
4747 ) => AttachmentUIDefinition < TAttachment > | undefined ;
4848}
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ const createSetupContractMock = (): jest.Mocked<OnechatPluginSetup> => {
1414
1515const createStartContractMock = ( ) : jest . Mocked < OnechatPluginStart > => {
1616 return {
17+ attachments : { } as any ,
1718 tools : { } as any ,
1819 setConversationFlyoutActiveConfig : jest . fn ( ) ,
1920 clearConversationFlyoutActiveConfig : jest . fn ( ) ,
You can’t perform that action at this time.
0 commit comments