Skip to content

detectLayoutFrom

detectLayoutFrom(rootPath, candidates): KayKitUpstreamLayout | undefined

Defined in: packages/declarative-hex-worlds/src/cli/commands/bootstrap/upstream-layout.ts:165

Detect which of the given candidate layouts a pack root matches (RFC0-10). detectKayKitLayout is the medieval-hexagon-only default; the pack bootstrap passes its specific target layout (e.g. a character-pack layout) so a non-medieval pack is detected against the right shape.

string

readonly KayKitUpstreamLayout[]

KayKitUpstreamLayout | undefined