Skip to content

@modoki/engine / index / inferFields

Function: inferFields()

inferFields(trait): Record<string, FieldHint>

Infer editor field hints (type + default) from a koota trait's schema. PUBLIC API by design — exported from @modoki/engine/runtime for downstream game/editor tooling to introspect a trait without the engine pre-registering metadata. It intentionally has no internal callers (registration supplies explicit meta.fields); covered by traitRegistry.test.ts. Keep it on the public barrel. (ecs-core F9)

Parameters

trait

Trait

Returns

Record<string, FieldHint>

Built with Modoki.