Saxonberg Server API
    Preparing search index...
    • Type Parameters

      Parameters

      Returns {
          _mixinName: string;
          globIdentityFields: string[];
          persistentFields: string[];
          prototype: __type<any>;
          subscribableFields: SubscribableFieldDescriptor[];
          __validateComposition__(ctor: AnyConstructor): void;
          new (...args: any[]): __type;
      } & TBase

        • new (...args: any[]): __type
        • Parameters

          • ...args: any[]

          Returns __type

      • _mixinName: string
      • globIdentityFields: string[]

        Subset of persistentFields that defines glob identity. Two stacks of the same templatePath merge iff every field listed here has equal values on both sides.

        Default [] means strict template-fungibility — every instance of the host class merges with every other (modulo shadows / adornments).

      • persistentFields: string[]
      • prototype: __type<any>
      • subscribableFields: SubscribableFieldDescriptor[]

        Live-query subscribable field. dependsOnFields defaults to ['quantity'] (descriptor name = source field name), so FieldChangedEvent { field: 'quantity' } from setQuantity triggers re-projection automatically.

      • __validateComposition__: function
        • One-time composition check, run by MixinApi.assertComposable the first time a concrete class is registered.

          Enforces:

          • Globbable ⊥ Container — globs aren't containers.
          • Globbable ⊥ Singleton — singletons are one-instance-per- templatePath; splitting would need a second instance at the same path and StuffApi.clone would refuse it.
          • globIdentityFields ⊂ persistentFields — identity fields must survive save/load.

          Parameters

          Returns void