@logic-pad/core
Version:
13 lines (12 loc) • 476 B
TypeScript
import { AnyConfig } from './config.js';
export default abstract class Configurable {
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;
}