From b737e9797d9154fc673c05f9af1ee880731ce806 Mon Sep 17 00:00:00 2001 From: J8118 Date: Thu, 9 Apr 2026 08:55:17 +0400 Subject: [PATCH] Fix import casing mismatch for gentest types.ts The file is recorded in git as types.ts (lowercase) but all 7 imports referenced Types.ts (uppercase). This casing mismatch was introduced in dcaa7ca7 (#1889) and causes TS1261 on case-insensitive filesystems. --- gentest/src/CssToYoga.ts | 2 +- gentest/src/buildLayoutTree.ts | 2 +- gentest/src/cli.ts | 2 +- gentest/src/emitters/CppEmitter.ts | 2 +- gentest/src/emitters/Emitter.ts | 2 +- gentest/src/emitters/JavaEmitter.ts | 2 +- gentest/src/emitters/JavascriptEmitter.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gentest/src/CssToYoga.ts b/gentest/src/CssToYoga.ts index 55b1f8f590..aa504e2594 100644 --- a/gentest/src/CssToYoga.ts +++ b/gentest/src/CssToYoga.ts @@ -8,7 +8,7 @@ */ import type Emitter from './emitters/Emitter.ts'; -import type {ParsedStyles, ValueWithUnit} from './Types.ts'; +import type {ParsedStyles, ValueWithUnit} from './types.ts'; const INVISIBLE_BORDER_STYLES = new Set(['none', 'initial']); diff --git a/gentest/src/buildLayoutTree.ts b/gentest/src/buildLayoutTree.ts index 32505ccf32..0bb2cfacd3 100644 --- a/gentest/src/buildLayoutTree.ts +++ b/gentest/src/buildLayoutTree.ts @@ -8,7 +8,7 @@ */ import type {WebDriver} from 'selenium-webdriver'; -import type {LayoutNode} from './Types.ts'; +import type {LayoutNode} from './types.ts'; /** * Build the layout tree by querying the DOM via a single executeScript call. diff --git a/gentest/src/cli.ts b/gentest/src/cli.ts index 30b7be6e98..0b0580d19b 100644 --- a/gentest/src/cli.ts +++ b/gentest/src/cli.ts @@ -18,7 +18,7 @@ import readline from 'node:readline/promises'; import signedsource from 'signedsource'; import {glob} from 'glob'; -import type {LayoutNode} from './Types.ts'; +import type {LayoutNode} from './types.ts'; import {createChromePool} from './ChromePool.ts'; import buildLayoutTree from './buildLayoutTree.ts'; import {CppEmitter} from './emitters/CppEmitter.ts'; diff --git a/gentest/src/emitters/CppEmitter.ts b/gentest/src/emitters/CppEmitter.ts index 264267a276..5c6545e556 100644 --- a/gentest/src/emitters/CppEmitter.ts +++ b/gentest/src/emitters/CppEmitter.ts @@ -8,7 +8,7 @@ */ import Emitter from './Emitter.ts'; -import type {ValueWithUnit} from '../Types.ts'; +import type {ValueWithUnit} from '../types.ts'; function toValueCpp(value: string | number): string { const n = value.toString().replace('px', '').replace('%', ''); diff --git a/gentest/src/emitters/Emitter.ts b/gentest/src/emitters/Emitter.ts index 31ed78eecd..a8423cf576 100644 --- a/gentest/src/emitters/Emitter.ts +++ b/gentest/src/emitters/Emitter.ts @@ -7,7 +7,7 @@ * @format */ -import type {ValueWithUnit, LayoutNode} from '../Types.ts'; +import type {ValueWithUnit, LayoutNode} from '../types.ts'; import { parseStyleAttribute, applyStyles, diff --git a/gentest/src/emitters/JavaEmitter.ts b/gentest/src/emitters/JavaEmitter.ts index 7b501cb7c8..3feb560c41 100644 --- a/gentest/src/emitters/JavaEmitter.ts +++ b/gentest/src/emitters/JavaEmitter.ts @@ -8,7 +8,7 @@ */ import Emitter from './Emitter.ts'; -import type {ValueWithUnit} from '../Types.ts'; +import type {ValueWithUnit} from '../types.ts'; function toValueJava(value: string | number): string { const n = value.toString().replace('px', '').replace('%', ''); diff --git a/gentest/src/emitters/JavascriptEmitter.ts b/gentest/src/emitters/JavascriptEmitter.ts index 060c5fa8b1..936ba657c2 100644 --- a/gentest/src/emitters/JavascriptEmitter.ts +++ b/gentest/src/emitters/JavascriptEmitter.ts @@ -8,7 +8,7 @@ */ import Emitter from './Emitter.ts'; -import type {ValueWithUnit} from '../Types.ts'; +import type {ValueWithUnit} from '../types.ts'; function toValueJavascript(value: ValueWithUnit): string { switch (value.type) {