-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 (#3969)
* Fix typing for usePerformCardAction * Update entry * Fix ESLint
- Loading branch information
Showing
20 changed files
with
256 additions
and
62 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 DirectLineActivity = any; | ||
|
||
export default DirectLineActivity; |
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.