WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 0d02739

Browse files
author
Julien Moreau-Mathis
committed
chore: bump typescript to v5.9.3
1 parent 73dc834 commit 0d02739

File tree

18 files changed

+18
-18
lines changed

18 files changed

+18
-18
lines changed

editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"electron-reloader": "1.2.3",
3737
"postcss-import": "16.1.0",
3838
"tailwindcss": "3.4.4",
39-
"typescript": "5.8.3",
39+
"typescript": "5.9.3",
4040
"vitest": "4.0.13"
4141
},
4242
"dependencies": {

editor/src/editor/layout/assets-browser/items/image-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class AssetBrowserImageItem extends AssetsBrowserItem {
8585

8686
private async _updateThumbnail(): Promise<void> {
8787
if (await pathExists(this.props.absolutePath)) {
88-
const buffer = await sharp(this.props.absolutePath).resize(256, 256).toBuffer();
88+
const buffer = (await sharp(this.props.absolutePath).resize(256, 256).toBuffer()) as Buffer<ArrayBuffer>;
8989
this._thumbnailPath = URL.createObjectURL(new Blob([buffer]));
9090
} else {
9191
this._thumbnailError = true;

editor/src/editor/layout/inspector/fields/texture.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ export class EditorInspectorTextureField extends Component<IEditorInspectorTextu
552552
});
553553
}
554554

555-
const buffer = await sharp(path).resize(128, 128).toBuffer();
555+
const buffer = (await sharp(path).resize(128, 128).toBuffer()) as Buffer<ArrayBuffer>;
556556

557557
if (this.state.previewTemporaryUrl) {
558558
URL.revokeObjectURL(this.state.previewTemporaryUrl);

editor/src/editor/layout/preview/import/import.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { projectConfiguration } from "../../../../project/configuration";
3434

3535
export async function tryConvertSceneFile(absolutePath: string, progress?: (percent: number) => void): Promise<string> {
3636
const toolsUrl = process.env.EDITOR_TOOLS_URL ?? "https://editor.babylonjs.com";
37-
const buffer = await readFile(absolutePath);
37+
const buffer = (await readFile(absolutePath)) as Buffer<ArrayBuffer>;
3838
const blob = new Blob([buffer], { type: "application/octet-stream" });
3939
const file = new File([blob], basename(absolutePath), { type: "application/octet-stream" });
4040

plugins/fab/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"babylonjs-editor": "latest",
1818
"concurrently": "9.2.0",
1919
"tailwindcss": "3.4.4",
20-
"typescript": "5.8.3"
20+
"typescript": "5.9.3"
2121
},
2222
"dependencies": {
2323
"babylonjs": "8.41.0",

plugins/quixel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"devDependencies": {
1414
"@types/node": "^22",
1515
"babylonjs-editor": "latest",
16-
"typescript": "5.8.3"
16+
"typescript": "5.9.3"
1717
},
1818
"dependencies": {
1919
"babylonjs": "8.41.0",

plugins/quixel/src/tools/textureMerger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class TextureUtils {
8181
/**
8282
* Converts the given pixels to a readable blob image.
8383
*/
84-
private static async _convertPixelsToBlobImage(size: ISize, pixels: Uint8ClampedArray): Promise<Blob | null> {
84+
private static async _convertPixelsToBlobImage(size: ISize, pixels: Uint8ClampedArray<ArrayBuffer>): Promise<Blob | null> {
8585
// Base canvas
8686
const canvas = document.createElement("canvas");
8787
canvas.width = size.width;

templates/electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"electron-builder": "26.0.12",
2121
"tailwindcss": "4.1.18",
2222
"tsc-watch": "7.2.0",
23-
"typescript": "5.8.3",
23+
"typescript": "5.9.3",
2424
"vite": "6.4.1"
2525
},
2626
"dependencies": {

templates/nextjs/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/dev/types/routes.d.ts";
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

templates/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
"postcss": "^8",
3030
"raw-loader": "^4.0.2",
3131
"tailwindcss": "3.4.4",
32-
"typescript": "5.8.3"
32+
"typescript": "5.9.3"
3333
}
3434
}

0 commit comments

Comments
 (0)