Skip to content
Shapemetry

@huukhanhnguyen/model / conventions/registry

conventions/registry

ConventionRegistry

Constructors

Constructor

new ConventionRegistry(): ConventionRegistry

Returns

ConventionRegistry

Methods

all()

all(): Convention[]

Returns

Convention[]

get()

get(lane): Convention | undefined

Parameters

lane

string

Returns

Convention | undefined

register()

register(convention): void

Parameters

convention

Convention

Returns

void


mergeConventions()

mergeConventions(...sets): ConventionRegistry

Build a registry from a base set plus any pack sets, later wins per lane — the same last-writer merge createRegistry uses for nodes.

Parameters

sets

...Convention[][]

Returns

ConventionRegistry

Last updated: 📖 1 min readEdit on GitHub