mirror of
https://github.com/motajs/template.git
synced 2026-11-14 23:54:31 +08:00
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:
1 parent
a12b2d2db8
commit
f911ac5989
3 files changed
+5
-6
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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 可消费的默认事件映射
|
||||
|
||||
Reference in new issue
Block a user