Skip to content

Commit

Permalink
fix(types): Fix withIoc types
Browse files Browse the repository at this point in the history
  • Loading branch information
krzotki committed Nov 26, 2024
1 parent b53c836 commit 46d4793
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.2.0-alpha.18",
"version": "0.2.0-alpha.19",
"license": "Apache-2.0",
"name": "brainly-gene",
"scripts": {
Expand Down
28 changes: 14 additions & 14 deletions packages/create/bin/versions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"dependencies": {
"@brainly-gene/core": "0.2.0-alpha.15",
"@brainly-gene/next": "0.2.0-alpha.15",
"@nx/next": "17.3.0",
"@brainly-gene/core": "0.2.0-alpha.18",
"@brainly-gene/next": "0.2.0-alpha.18",
"@nx/next": "17.3.2",
"@sentry/react": "7.77.0",
"@storybook/addon-actions": "6.5.16",
"@tanstack/react-query": "5.55.4",
Expand All @@ -28,7 +28,7 @@
"next": "14.0.4",
"next-connect": "0.12.1",
"node-fetch": "2.6.7",
"nx": "17.3.0",
"nx": "17.3.2",
"openai": "3.3.0",
"path-to-regexp": "6.3.0",
"prettier": "2.8.8",
Expand All @@ -51,16 +51,16 @@
"mini-css-extract-plugin": "2.2.0"
},
"devDependencies": {
"@brainly-gene/eslint-plugin": "0.2.0-alpha.15",
"@brainly-gene/tools": "0.2.0-alpha.15",
"@nx/cypress": "17.3.0",
"@nx/devkit": "17.3.0",
"@nx/eslint-plugin": "17.3.0",
"@nx/jest": "17.3.0",
"@nx/linter": "17.3.0",
"@nx/react": "17.3.0",
"@nx/web": "17.3.0",
"@nx/workspace": "17.3.0",
"@brainly-gene/eslint-plugin": "0.2.0-alpha.18",
"@brainly-gene/tools": "0.2.0-alpha.18",
"@nx/cypress": "17.3.2",
"@nx/devkit": "17.3.2",
"@nx/eslint-plugin": "17.3.2",
"@nx/jest": "17.3.2",
"@nx/linter": "17.3.2",
"@nx/react": "17.3.2",
"@nx/web": "17.3.2",
"@nx/workspace": "17.3.2",
"@storybook/addon-actions": "6.5.16",
"@storybook/addon-backgrounds": "6.5.16",
"@storybook/addon-knobs": "6.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/gene/src/ioc/react.ioc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export function useCallbackInjection<T, R = void>(
}
}

export function withIoc<T extends PropsWithChildren>(
export function withIoc<T extends JSX.IntrinsicAttributes>(
getContainer: (props: T) => interfaces.Container
) {
return (Page: React.ComponentType<T>) => {
Expand Down

0 comments on commit 46d4793

Please sign in to comment.