Improve TS types to support isolatedModules and isolatedDeclarations

This commit is contained in:
Björn Harrtell
2026-04-08 05:42:18 +02:00
parent e223d69b36
commit 496f10525b
249 changed files with 12736 additions and 14776 deletions

View File

@@ -1,26 +1,14 @@
import {Attacker} from './attacker.js';
import {BookReader} from './book-reader.js';
import {Rapunzel} from './rapunzel.js';
import { Attacker } from './attacker.js';
import { BookReader } from './book-reader.js';
import { Rapunzel } from './rapunzel.js';
export declare enum Character {
NONE = 0,
MuLan = 1,
Rapunzel = 2,
Belle = 3,
BookFan = 4,
Other = 5,
Unused = 6,
NONE = 0,
MuLan = 1,
Rapunzel = 2,
Belle = 3,
BookFan = 4,
Other = 5,
Unused = 6
}
export declare function unionToCharacter(
type: Character,
accessor: (
obj: Attacker | BookReader | Rapunzel | string,
) => Attacker | BookReader | Rapunzel | string | null,
): Attacker | BookReader | Rapunzel | string | null;
export declare function unionListToCharacter(
type: Character,
accessor: (
index: number,
obj: Attacker | BookReader | Rapunzel | string,
) => Attacker | BookReader | Rapunzel | string | null,
index: number,
): Attacker | BookReader | Rapunzel | string | null;
export declare function unionToCharacter(type: Character, accessor: (obj: Attacker | BookReader | Rapunzel | string) => Attacker | BookReader | Rapunzel | string | null): Attacker | BookReader | Rapunzel | string | null;
export declare function unionListToCharacter(type: Character, accessor: (index: number, obj: Attacker | BookReader | Rapunzel | string) => Attacker | BookReader | Rapunzel | string | null, index: number): Attacker | BookReader | Rapunzel | string | null;