mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 00:21:34 +00:00
Change FACTORY_COMPONENTS typing for best of both worlds
This commit is contained in:
parent
dbf6af8607
commit
90bacccbbb
1 changed files with 2 additions and 2 deletions
|
@ -167,12 +167,12 @@ const factory = createLayer(id, () => {
|
|||
}
|
||||
}
|
||||
}
|
||||
} as Record<string, FactoryComponentDeclaration>;
|
||||
} as Record<FactoryCompNames, FactoryComponentDeclaration>;
|
||||
const RESOURCES = {
|
||||
square: square
|
||||
} as Record<string, string>;
|
||||
|
||||
type FactoryCompNames = keyof typeof FACTORY_COMPONENTS;
|
||||
type FactoryCompNames = "cursor" | "rotate" | "conveyor" | "square" | "receiver" | "shrinker";
|
||||
type BuildableCompName = Exclude<FactoryCompNames, "cursor">;
|
||||
|
||||
interface FactoryComponentBase extends Record<string, State> {
|
||||
|
|
Loading…
Reference in a new issue