UNPKG

@logic-pad/core

Version:
15 lines (14 loc) 556 B
import { AnyConfig } from './config.js'; export default abstract class Configurable { abstract get title(): string; abstract get configExplanation(): string; get configs(): readonly AnyConfig[] | null; abstract copyWith(props: Record<string, unknown>): this; /** * Check if this instruction is equal to another instruction by comparing their IDs and configs. * * @param other The other instruction to compare to. * @returns Whether the two instructions are equal. */ equals(other: Configurable): boolean; }