Member Junction
    Preparing search index...

    Interface RegisterClassOptions

    Options bag accepted by RegisterClassEx. Use this when you want named fields instead of a long positional argument list — especially when attaching metadata for structured discovery via ClassFactory.GetAllRegistrationsByMetadata.

    Adding a field here is the right way to extend the registration contract going forward — no more "yet another positional parameter."

    interface RegisterClassOptions {
        autoRegisterWithRootClass?: boolean;
        key?: string | null;
        metadata?: Record<string, unknown>;
        priority?: number;
        skipNullKeyWarning?: boolean;
    }
    Index

    Properties

    autoRegisterWithRootClass?: boolean

    Auto-register against the hierarchy root class in addition to baseClass.

    key?: string | null

    Discriminator key used to look up registrations by GetRegistration etc.

    metadata?: Record<string, unknown>

    Arbitrary structured metadata persisted on the ClassRegistration. Pair with ClassFactory.GetAllRegistrationsByMetadata for structured discovery. Common shapes include { entity, slot, sortKey } for form-panel slots.

    priority?: number

    Higher = wins ties. See ClassFactory.Register for the auto-increment behavior.

    skipNullKeyWarning?: boolean

    Suppress the "registration has no key" console warning.