@logic-pad/core
Version:
11 lines (10 loc) • 446 B
TypeScript
import Instruction from '../instruction.js';
import Symbol from '../symbols/symbol.js';
export interface SymbolMergeHandler {
/**
* Determines if the description of two symbols can be merged when displayed in the UI.
* @param other The other symbol to compare against.
*/
descriptionEquals(other: Symbol): boolean;
}
export declare function handlesSymbolMerge<T extends Instruction>(val: T): val is T & SymbolMergeHandler;