refac: 재정비
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
export interface IReservedTurn {
|
||||
action: string;
|
||||
arg: Record<string, unknown>;
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user