types/inventory.types.ts
types/inventory.types.ts is a file in Bane's Lab Content. 25 lines of code and 5 definitions.
export type RuleKind = "avoidance" | "rule";
export interface InventoryRecord {
readonly always: string | null;
readonly directive: string;
readonly gate: string | null;
readonly kind: RuleKind;
readonly locked: boolean;
readonly never: string | null;
readonly slug: string;
readonly source: string;
readonly tier: string;
}
export interface InventorySource {
readonly lines: number;
readonly path: string;
readonly records: number;
}
export interface Inventory {
readonly records: readonly InventoryRecord[];
readonly sources: readonly InventorySource[];
}
export interface SourceText {
readonly path: string;
readonly text: string;
}