/** * Adds `name` and `type` properties, useful for querying on server-side and for choosing client-side component. * * > TODO: I might move `type` to base Entity class, seems I'm using `type` everywhere anyway * @category Trait */ export declare class LabelTrait { /** * @category LabelTrait */ name: string; /** * Type should be unique to schema object! If you're extending this schema * and adding new fields - set the new type string! * @category LabelTrait */ type: string; } /** * @category Trait */ export declare function hasLabel(entity: unknown): entity is LabelTrait;