UNPKG

self-assert

Version:

A small TypeScript library for designing models with built-in validity.

23 lines 776 B
import type { LabelId, LabeledRule } from "./types"; /** * JSON representation of a {@link RuleLabel} * * @category Rule labeling */ export interface RuleLabelAsJson { id: LabelId; description: string; } export declare class RuleLabel implements LabeledRule { protected id: LabelId; protected description: string; static fromJson({ id, description }: RuleLabelAsJson): RuleLabel; constructor(id: LabelId, description: string); isLabeledAs(aBrokenRuleLabel: LabeledRule): boolean; hasLabel(assertionId: LabelId, assertionDescription: string): boolean; hasLabelId(assertionId: LabelId): boolean; hasDescription(description: string): boolean; getId(): string; getDescription(): string; } //# sourceMappingURL=RuleLabel.d.ts.map