Skip to content

Commit e046606

Browse files
committed
fix ts
1 parent bc44ad8 commit e046606

File tree

2 files changed

+2
-1
lines changed
  • x-pack/platform
    • packages/shared/onechat/onechat-browser/attachments
    • plugins/shared/onechat/public

2 files changed

+2
-1
lines changed

x-pack/platform/packages/shared/onechat/onechat-browser/attachments/contract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

x-pack/platform/plugins/shared/onechat/public/mocks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const createSetupContractMock = (): jest.Mocked<OnechatPluginSetup> => {
1414

1515
const createStartContractMock = (): jest.Mocked<OnechatPluginStart> => {
1616
return {
17+
attachments: {} as any,
1718
tools: {} as any,
1819
setConversationFlyoutActiveConfig: jest.fn(),
1920
clearConversationFlyoutActiveConfig: jest.fn(),

0 commit comments

Comments
 (0)