@logic-pad/core
Version:
15 lines (14 loc) • 673 B
TypeScript
import GridData from '../grid.js';
import Instruction from '../instruction.js';
import { GridState } from '../primitives.js';
export interface FinalValidationHandler {
/**
* Edits the final grid state after all rules and symbols have been validated.
*
* @param grid The grid that is being validated.
* @param solution The solution grid, or null if the solution is not available.
* @param state The current state of the grid.
*/
onFinalValidation(grid: GridData, solution: GridData | null, state: GridState): GridState;
}
export declare function handlesFinalValidation<T extends Instruction>(val: T): val is T & FinalValidationHandler;