Skip to content
Shapemetry

@huukhanhnguyen/model / schema/looseNode

schema/looseNode

LooseNode

LooseNode = {[field: string]: unknown; args?: ArgLike[]; children?: LooseNode[]; columns?: LooseNode[]; enabled?: string; flat?: boolean; key?: string; label?: string; locked?: boolean; method?: string; opening?: LooseNode[]; operations?: LooseNode[]; parameters?: LooseNode[]; }

The ONE loose node shape every plain-JSON walker sniffs: node-shaped record, every field optional, unknown fields carried through (a walk must never drop a field it doesn't know). Walkers needing strict args (the canonical Argument pair) cast to nodeArgs.ts's ArgCarrier at the point of use rather than restating the carrier here.

Indexable

[field: string]: unknown

args?

optional args?: ArgLike[]

children?

optional children?: LooseNode[]

columns?

optional columns?: LooseNode[]

enabled?

optional enabled?: string

flat?

optional flat?: boolean

key?

optional key?: string

label?

optional label?: string

locked?

optional locked?: boolean

method?

optional method?: string

opening?

optional opening?: LooseNode[]

operations?

optional operations?: LooseNode[]

parameters?

optional parameters?: LooseNode[]

Last updated: 📖 1 min readEdit on GitHub