refac: 재정비

This commit is contained in:
2024-03-09 05:21:50 +00:00
parent f320ce58a2
commit c9afc111cc
6 changed files with 20 additions and 9 deletions
@@ -0,0 +1,4 @@
export interface IReservedTurn {
action: string;
arg: Record<string, unknown>;
}
+2 -1
View File
@@ -18,4 +18,5 @@ export type ValidEntityList = {
};
export type ValidEntity = ValuesOf<ValidEntityList>;
export type ValidEntityType<Entity> = Entity extends ValidEntityList[infer T extends keyof ValidEntityList] ? T : never;
export type ValidEntityType = keyof ValidEntityList;
export type EntityType<Entity> = Entity extends ValidEntityList[infer T extends keyof ValidEntityList] ? T : never;