Skip to content

Commit f09d439

Browse files
fix(ts): Fix TypeScript errors in withAPIContext
Co-Authored-By: Joseph Gross <[email protected]>
1 parent 29b3dab commit f09d439

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/elements/common/api-context/withAPIContext.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ export interface WithAPIProps {
1414
* Higher-order component that provides API context to the wrapped component
1515
* This HOC is used by many components throughout the codebase
1616
*/
17-
const withAPIContext = (
18-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
19-
WrappedComponent: React.ComponentType<any>,
20-
) => {
17+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
18+
const withAPIContext = (WrappedComponent: React.ComponentType<any>) => {
2119
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2220
return React.forwardRef<any, any>((props, ref) => (
2321
<APIContext.Consumer>{api => <WrappedComponent ref={ref} {...props} api={api} />}</APIContext.Consumer>

0 commit comments

Comments
 (0)