Skip to content

Commit

Permalink
fix types issues, after upgrading by regenerating lockfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Sep 12, 2023
1 parent 6235cab commit 87ca927
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 65 deletions.
4 changes: 2 additions & 2 deletions code/addons/a11y/src/components/Report/HighlightToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function areAllRequiredElementsHighlighted(
highlighted: string[]
): CheckBoxStates {
const highlightedCount = elementsToHighlight.filter((item) =>
highlighted.includes(item.target[0])
highlighted.includes(item.target[0] as any)
).length;

// eslint-disable-next-line no-nested-ternary
Expand Down Expand Up @@ -52,7 +52,7 @@ const HighlightToggle: React.FC<ToggleProps> = ({ toggleId, elementsToHighlight

const handleToggle = React.useCallback((): void => {
toggleHighlight(
elementsToHighlight.map((e) => e.target[0]),
elementsToHighlight.map((e) => e.target[0] as any),
checkBoxState !== CheckBoxStates.CHECKED
);
}, [elementsToHighlight, checkBoxState, toggleHighlight]);
Expand Down
4 changes: 3 additions & 1 deletion code/builders/builder-manager/src/utils/files.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { OutputFile } from 'esbuild';
import { platform } from 'os';
import { sanitizePath } from './files';

Expand All @@ -9,12 +10,13 @@ test('sanitizePath', () => {
? 'C:\\Users\\username\\Projects\\projectname\\storybook'
: '/Users/username/Projects/projectname/storybook';
const text = 'demo text';
const file = {
const file: OutputFile = {
path: isWindows
? 'C:\\Users\\username\\Projects\\projectname\\storybook\\node_modules\\@storybook\\addon-x+y\\dist\\manager.js'
: '/Users/username/Projects/projectname/storybook/node_modules/@storybook/addon-x+y/dist/manager.js',
contents: Uint8Array.from(Array.from(text).map((letter) => letter.charCodeAt(0))),
text,
hash: '',
};
const { location, url } = sanitizePath(file, addonsDir);

Expand Down
1 change: 1 addition & 0 deletions code/frameworks/nextjs/src/routing/app-router-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const AppRouterProvider: React.FC<AppRouterProviderProps> = ({ children, action,
apply: false,
hashFragment: null,
segmentPaths: [tree],
onlyHashChange: false,
},
nextUrl: pathname,
}}
Expand Down
1 change: 1 addition & 0 deletions code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
],
"resolutions": {
"@playwright/test": "1.36.0",
"@testing-library/jest-dom": "^5.11.9",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/experimental-utils": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
Expand Down
32 changes: 1 addition & 31 deletions code/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ __metadata:
languageName: node
linkType: hard

"@adobe/css-tools@npm:^4.0.1, @adobe/css-tools@npm:^4.3.0":
"@adobe/css-tools@npm:^4.0.1":
version: 4.3.1
resolution: "@adobe/css-tools@npm:4.3.1"
checksum: 05672719b544cc0c21ae3ed0eb6349bf458e9d09457578eeeb07cf0f696469ac6417e9c9be1b129e5d6a18098a061c1db55b2275591760ef30a79822436fcbfa
Expand Down Expand Up @@ -8818,36 +8818,6 @@ __metadata:
languageName: node
linkType: hard

"@testing-library/jest-dom@npm:^6.1.2":
version: 6.1.3
resolution: "@testing-library/jest-dom@npm:6.1.3"
dependencies:
"@adobe/css-tools": ^4.3.0
"@babel/runtime": ^7.9.2
aria-query: ^5.0.0
chalk: ^3.0.0
css.escape: ^1.5.1
dom-accessibility-api: ^0.5.6
lodash: ^4.17.15
redent: ^3.0.0
peerDependencies:
"@jest/globals": ">= 28"
"@types/jest": ">= 28"
jest: ">= 28"
vitest: ">= 0.32"
peerDependenciesMeta:
"@jest/globals":
optional: true
"@types/jest":
optional: true
jest:
optional: true
vitest:
optional: true
checksum: 544e01939d3c14a3d44ae2e2bb9fe2a0cb5a9e4992ca2728f41188fb9fb2d56e25f1a2e1c12000be2a94d8da36cb220b24020e1b5c5c4c4bede9058a0d80583d
languageName: node
linkType: hard

"@testing-library/react@npm:^11.2.2":
version: 11.2.7
resolution: "@testing-library/react@npm:11.2.7"
Expand Down
1 change: 1 addition & 0 deletions scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"esbuild": "^0.18.0",
"eslint": "^8.28.0",
"serialize-javascript": "^3.1.0",
"@testing-library/jest-dom": "^5.11.9",
"type-fest": "~2.19"
},
"dependencies": {
Expand Down
32 changes: 1 addition & 31 deletions scripts/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ __metadata:
languageName: node
linkType: hard

"@adobe/css-tools@npm:^4.0.1, @adobe/css-tools@npm:^4.3.0":
"@adobe/css-tools@npm:^4.0.1":
version: 4.3.1
resolution: "@adobe/css-tools@npm:4.3.1"
checksum: 05672719b544cc0c21ae3ed0eb6349bf458e9d09457578eeeb07cf0f696469ac6417e9c9be1b129e5d6a18098a061c1db55b2275591760ef30a79822436fcbfa
Expand Down Expand Up @@ -3222,36 +3222,6 @@ __metadata:
languageName: node
linkType: hard

"@testing-library/jest-dom@npm:^6.1.2":
version: 6.1.3
resolution: "@testing-library/jest-dom@npm:6.1.3"
dependencies:
"@adobe/css-tools": ^4.3.0
"@babel/runtime": ^7.9.2
aria-query: ^5.0.0
chalk: ^3.0.0
css.escape: ^1.5.1
dom-accessibility-api: ^0.5.6
lodash: ^4.17.15
redent: ^3.0.0
peerDependencies:
"@jest/globals": ">= 28"
"@types/jest": ">= 28"
jest: ">= 28"
vitest: ">= 0.32"
peerDependenciesMeta:
"@jest/globals":
optional: true
"@types/jest":
optional: true
jest:
optional: true
vitest:
optional: true
checksum: 544e01939d3c14a3d44ae2e2bb9fe2a0cb5a9e4992ca2728f41188fb9fb2d56e25f1a2e1c12000be2a94d8da36cb220b24020e1b5c5c4c4bede9058a0d80583d
languageName: node
linkType: hard

"@testing-library/react@npm:^14.0.0":
version: 14.0.0
resolution: "@testing-library/react@npm:14.0.0"
Expand Down

0 comments on commit 87ca927

Please sign in to comment.