forked from microsoft/BotFramework-WebChat
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix typing for
usePerformCardAction
hook (microsoft#3969)
* Fix typing for usePerformCardAction * Update entry * Fix ESLint
- Loading branch information
Showing
19 changed files
with
237 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { PerformCardAction } from '../types/CardActionMiddleware'; | ||
import { DirectLineCardAction } from 'botframework-webchat-core'; | ||
|
||
import useWebChatAPIContext from './internal/useWebChatAPIContext'; | ||
|
||
export default function usePerformCardAction(): PerformCardAction { | ||
export default function usePerformCardAction(): (cardAction: DirectLineCardAction) => void { | ||
return useWebChatAPIContext().onCardAction; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// TODO: [P1] #3953 We should fully type it out. | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
type DirectLineAnimationCard = any; | ||
|
||
export default DirectLineAnimationCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// TODO: [P1] #3953 We should fully type it out. | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
type DirectLineAttachment = any; | ||
|
||
export default DirectLineAttachment; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// TODO: [P1] #3953 We should fully type it out. | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
type DirectLineAudioCard = any; | ||
|
||
export default DirectLineAudioCard; |
Oops, something went wrong.