From 4d93815c36c164ede94c2abda5cc3a7a77558c56 Mon Sep 17 00:00:00 2001 From: Anthony Kim Date: Fri, 17 Jul 2026 11:31:12 -0700 Subject: [PATCH] Improve types in webglatlasstress.test.ts --- addons/addon-webgl/test/WebglAtlasStress.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/addon-webgl/test/WebglAtlasStress.test.ts b/addons/addon-webgl/test/WebglAtlasStress.test.ts index 789635614..e0fc1c906 100644 --- a/addons/addon-webgl/test/WebglAtlasStress.test.ts +++ b/addons/addon-webgl/test/WebglAtlasStress.test.ts @@ -3,7 +3,7 @@ * @license MIT */ -import { IImage32, decodePng } from '@lunapaint/png-codec'; +import { decodePng, type IImage32 } from '@lunapaint/png-codec'; import test, { expect } from '@playwright/test'; import type { Terminal, ITerminalInitOnlyOptions, ITerminalOptions } from '@xterm/xterm'; import type { IWebglAddonOptions, WebglAddon } from '@xterm/addon-webgl'; @@ -14,11 +14,11 @@ type TestTerminalConstructor = new (options?: ITerminalOptions & ITerminalInitOn type TestWebglAddonConstructor = new (options?: IWebglAddonOptions) => ITestWebglAddon; interface ITestTextureAtlas { - pages: { canvas: HTMLCanvasElement }[]; + readonly pages: ReadonlyArray<{ readonly canvas: HTMLCanvasElement }>; } interface ITestGlyphRenderer { - _atlasTextures: unknown[]; + readonly _atlasTextures: ReadonlyArray; } interface ITestRenderer {