UNPKG

chessground

Version:
9 lines (8 loc) 322 B
import { DrawShape } from './draw'; export interface SyncableShape { shape: DrawShape; current: boolean; hash: Hash; } export type Hash = string; export declare function syncShapes(shapes: SyncableShape[], root: HTMLElement | SVGElement, renderShape: (shape: SyncableShape) => HTMLElement | SVGElement): void;