Repository navigation
Fix type errors in the published typings with skipLibCheck turned off #5978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4bd7c5e
Resolve speech recognition types via globalThis in WebSpeechPonyfill
69b9320
Fix generic constraints that fail under strictFunctionTypes
9803f73
Export bundle types from entry points instead of namespaces
727c604
Rename the streaming Markdown renderer function to avoid a self-refer…
0cdd9b7
Resolve setImmediate and clearImmediate types via globalThis with a s…
5c9e7a0
Fall back to core's setImmediate and clearImmediate types without Nod…
afc4d08
Add the changelog fragment
ac7ff6b
Rename createStreamingRenderer.ts to createMarkdownStreamingRenderer.ts
8795eb4
Merge branch 'main' into OEvgeny/fix-shipped-typings
OEvgeny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| ### Fixed | ||
|
|
||
| - Fixed type errors in the published typings when `skipLibCheck` is turned off, in PR [#5978](https://github.com/microsoft/BotFramework-WebChat/pull/5978), by [@OEvgeny](https://github.com/OEvgeny) |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| /** | ||
| * Type of a global, or `Fallback` if the consumer's global types do not declare it. | ||
| * | ||
| * Use this instead of `typeof X` in published typings when `X` is not in TypeScript's DOM library, e.g. `setImmediate` | ||
| * (Node.js types) or `SpeechRecognition` (`@types/dom-speech-recognition`), so consumers without these types do not get | ||
| * "Cannot find name". | ||
| */ | ||
| type TypeOfGlobal<Name extends string, Fallback> = typeof globalThis extends Record<Name, infer T> ? T : Fallback; | ||
|
|
||
| export { type TypeOfGlobal }; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 +1,8 @@ | ||
| export * from '../actual/component/full'; | ||
|
|
||
| // Types are exported here instead of `../actual/component/minimal`, see the namespaces in `./minimal.ts`. | ||
| export { | ||
| type BasicWebChatProps, | ||
| type ComposerProps, | ||
| type ReactWebChatProps | ||
| } from 'botframework-webchat-component/component.js'; |
This file contains hidden or 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 +1,8 @@ | ||
| export * from '../actual/decorator'; | ||
|
|
||
| // Types are exported here instead of `../actual/decorator`, see the namespaces in `./minimal.ts`. | ||
| export { | ||
| type ActivityBorderDecoratorProps, | ||
| type DecoratorMiddleware, | ||
| type InferDecoratorRequest | ||
| } from 'botframework-webchat-api/decorator.js'; |
This file contains hidden or 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 +1,4 @@ | ||
| export * from '../actual/hook/full'; | ||
|
|
||
| // Types are exported here instead of `../actual/hook/minimal`, see the namespaces in `./minimal.ts`. | ||
| export { type DropZoneState, type SendBoxFocusOptions } from 'botframework-webchat-component/hook.js'; |
This file contains hidden or 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 +1,10 @@ | ||
| export * from '../actual/internal'; | ||
|
|
||
| // Types are exported here instead of `../actual/internal`, see the namespaces in `./minimal.ts`. | ||
| export { | ||
| type ActivityMiddleware, | ||
| type ActivityStatusMiddleware, | ||
| type TypingIndicatorMiddleware | ||
| } from 'botframework-webchat-api'; | ||
| export { type HighlightCodeFn } from 'botframework-webchat-component/internal.js'; | ||
| export { type DirectLineCardAction, type WebChatActivity } from 'botframework-webchat-core'; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,5 @@ | ||
| import { type Context } from 'react'; | ||
|
|
||
| type ContextOf<T extends Context<unknown>> = T extends Context<infer C> ? C : never; | ||
| type ContextOf<T> = T extends Context<infer C> ? C : never; | ||
|
|
||
| export type { ContextOf }; |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.