style(03-06): normalize tile migration formatting

- Apply repository CRLF and Prettier formatting
- Record remaining out-of-scope type diagnostics
This commit is contained in:
unanmed 2026-09-10 15:57:59 +08:00
parent a12b2d2db8
commit f911ac5989
3 changed files with 5 additions and 6 deletions

View File

@ -1,3 +1,3 @@
# Deferred Items — Phase 03
- `pnpm check:type` remains blocked by pre-existing render/legacy diagnostics and the user-owned Tile events contract migration (`TileStore.getEvent` and `TileLegacyBridge` still use the old `trigger` shape). The migration is outside Plan 03-01 and remains assigned to the later Phase 3 tile-events plan.
- `pnpm check:type` remains blocked by pre-existing render/legacy diagnostics outside Plan 03-06. The Tile events contract diagnostics from the earlier baseline were resolved by Plan 03-06.

View File

@ -107,7 +107,9 @@ export class TileStore<TLegacy = unknown> implements ITileStore<TLegacy> {
}
/** 将原始事件对象转换为运行时使用的数字键事件映射 */
private createEventMap(events: Record<number, string>): Map<number, string> {
private createEventMap(
events: Record<number, string>
): Map<number, string> {
const eventMap = new Map<number, string>();
for (const [priority, event] of Object.entries(events)) {
eventMap.set(Number(priority), event);

View File

@ -1,9 +1,6 @@
import { describe, expect, it } from 'vitest';
import { TileStore } from '@user/data-common';
import {
LegacyTileData,
TileLegacyBridge
} from '../src/legacy/tile';
import { LegacyTileData, TileLegacyBridge } from '../src/legacy/tile';
describe('TileLegacyBridge events-map contract', () => {
// 验证旧样板事件对象会转换为 TileStore 可消费的默认事件映射