Skip to content

Commit 91a0233

Browse files
committed
Fix typing
1 parent dc8a338 commit 91a0233

5 files changed

Lines changed: 12 additions & 13 deletions

File tree

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/api-middleware/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
},
8888
"dependencies": {
8989
"handler-chain": "^0.1.0",
90-
"react-chain-of-responsibility": "^0.4.0-main.9e06f00",
90+
"react-chain-of-responsibility": "^0.4.0-main.2a72139",
9191
"react-wrap-with": "0.1.0",
9292
"valibot": "1.1.0"
9393
}

packages/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"iter-fest": "0.3.0",
131131
"math-random": "2.0.1",
132132
"prop-types": "15.8.1",
133-
"react-chain-of-responsibility": "^0.4.0-main.9e06f00",
133+
"react-chain-of-responsibility": "^0.4.0-main.2a72139",
134134
"react-redux": "7.2.9",
135135
"redux": "5.0.1",
136136
"simple-update-in": "2.2.0",

packages/api/src/errorBox/errorBoxTelemetryPolymiddleware.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
ErrorBoxPolymiddlewareHandlerResult
55
} from '@msinternal/botframework-webchat-api-middleware';
66
import { validateProps } from '@msinternal/botframework-webchat-react-valibot';
7-
import { memo, useEffect, type ReactElement } from 'react';
7+
import { memo, useEffect } from 'react';
88
import { custom, never, object, optional, pipe, readonly, unknown, type InferInput } from 'valibot';
99

1010
import { useTrackException } from '../hooks';
@@ -39,8 +39,7 @@ const ErrorBoxTelemetryHeadless = memo(function ErrorBoxTelemetryHeadless(props:
3939
}
4040
}, [error, trackException]);
4141

42-
// TODO: [P*] Fix this, I think it should return `ReactNode`.
43-
return render?.() as ReactElement;
42+
return render?.();
4443
});
4544

4645
const errorBoxTelemetryPolymiddleware = createErrorBoxPolymiddleware(

packages/component/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"merge-refs": "2.0.0",
136136
"prop-types": "15.8.1",
137137
"punycode": "2.3.1",
138-
"react-chain-of-responsibility": "^0.4.0-main.9e06f00",
138+
"react-chain-of-responsibility": "^0.4.0-main.2a72139",
139139
"react-dictate-button": "4.0.0",
140140
"react-film": "4.0.0",
141141
"react-redux": "7.2.9",

0 commit comments

Comments
 (0)