Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump typescript from 5.5.4 to 5.6.2 #9162

Merged
merged 11 commits into from
Sep 24, 2024
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
"terser-webpack-plugin": "^5.3.10",
"ts-loader": "^9.5.1",
"type-fest": "^4.26.1",
"typescript": "^5.5.4",
"typescript": "^5.6.2",
"typescript-plugin-css-modules": "^5.1.0",
"webpack": "^5.94.0",
"webpack-build-notifier": "^3.1.0",
Expand Down
6 changes: 6 additions & 0 deletions src/bricks/effects/clipboard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,19 @@ const SMALL_RED_DOT_URI =
};

class ClipboardItemFake implements ClipboardItem {
presentationStyle: PresentationStyle = "unspecified";

constructor(
private readonly items: Record<
string,
string | Blob | PromiseLike<string | Blob>
>,
) {}

static supports(type: string): boolean {
return true;
}

async getType(type: string): Promise<Blob> {
return this.items[type] as Blob;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ import {

let starterBrickCount = 0;
function newStarterBrickId(): InnerDefinitionRef {
// eslint-disable-next-line no-constant-binary-expression -- false positive
return `starterBrick${starterBrickCount++ ?? ""}` as InnerDefinitionRef;
return `starterBrick${starterBrickCount++}` as InnerDefinitionRef;
}

describe("useCheckModStarterBrickInvariants", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ import { starterBrickDefinitionFactory } from "@/testUtils/factories/modDefiniti

let starterBrickCount = 0;
function newStarterBrickId(): InnerDefinitionRef {
// eslint-disable-next-line no-constant-binary-expression -- false positive
return `starterBrick${starterBrickCount++ ?? ""}` as InnerDefinitionRef;
return `starterBrick${starterBrickCount++}` as InnerDefinitionRef;
}

describe("selectGetCleanComponentsAndDirtyFormStatesForMod", () => {
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"resolveJsonModule": true,
"baseUrl": ".",
"outDir": null,
"declaration": false,

// TODO: Drop these lines to make TS stricter https://github.com/pixiebrix/pixiebrix-extension/issues/775
"strictFunctionTypes": false,
Expand Down
Loading