From 9ca18321bc81389bac58d4a95ca94dce602e3692 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Sat, 22 Oct 2022 04:51:15 +0200 Subject: [PATCH] step 11 --- code/lib/router/src/router.tsx | 2 +- code/lib/types/package.json | 10 +++++++--- code/lib/types/src/modules/api-stories.ts | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/code/lib/router/src/router.tsx b/code/lib/router/src/router.tsx index ebd67e38638..031234dafe7 100644 --- a/code/lib/router/src/router.tsx +++ b/code/lib/router/src/router.tsx @@ -24,7 +24,7 @@ interface MatchingData { } interface LocationProps { - children: (renderData: RenderData) => ReactNode; + children: (renderData: RenderData) => any; } interface MatchProps { path: string; diff --git a/code/lib/types/package.json b/code/lib/types/package.json index 76d750a9868..b9aab461d46 100644 --- a/code/lib/types/package.json +++ b/code/lib/types/package.json @@ -39,12 +39,16 @@ "check": "../../../scripts/node_modules/.bin/tsc --noEmit", "prep": "../../../scripts/prepare/bundle.ts" }, - "devDependencies": { - "@storybook/csf": "0.0.2--canary.49.258942b.0", + "dependencies": { + "@babel/core": "^7.12.10", "@types/babel__core": "^7.0.0", "@types/express": "^4.7.0", + "express": "^4.17.1", + "file-system-cache": "^2.0.0" + }, + "devDependencies": { + "@storybook/csf": "0.0.2--canary.49.258942b.0", "@types/node": "^16.0.0", - "file-system-cache": "^2.0.0", "synchronous-promise": "^2.0.15", "typescript": "~4.6.3" }, diff --git a/code/lib/types/src/modules/api-stories.ts b/code/lib/types/src/modules/api-stories.ts index 4b70d1f51b3..b9036f88d19 100644 --- a/code/lib/types/src/modules/api-stories.ts +++ b/code/lib/types/src/modules/api-stories.ts @@ -21,7 +21,7 @@ export interface API_BaseEntry { depth: number; name: string; refId?: string; - renderLabel?: (item: API_BaseEntry) => React.ReactNode; + renderLabel?: (item: API_BaseEntry) => any; /** @deprecated */ isRoot: boolean;