Skip to content

Function.collectRules

github-actions[bot] edited this page Jun 2, 2026 · 20 revisions

umt / collectRules

Function: collectRules()

collectRules(instance): Map<PropertyKey, FieldMeta>

Defined in: Decorator/collectRules.ts:11

Collects the field metadata for an instance by walking its prototype chain. Rules declared on a subclass override rules with the same key on a base class.

Parameters

instance

object

The instance to inspect.

Returns

Map<PropertyKey, FieldMeta>

A map of field keys to their merged metadata.

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally