lichess-pgn-viewer
Version:
PGN viewer widget, designed to be embedded in content pages.
17 lines (16 loc) • 430 B
TypeScript
import { Id } from './interfaces';
export declare class Path {
readonly path: string;
constructor(path: string);
size: () => number;
head: () => Id;
tail: () => Path;
init: () => Path;
last: () => Id;
empty: () => boolean;
contains: (other: Path) => boolean;
isChildOf: (parent: Path) => boolean;
append: (id: Id) => Path;
equals: (other: Path) => boolean;
static root: Path;
}