Type Alias: Action
ts
type Action =
| {
point: Point;
type: "play";
}
| {
type: "pass";
}
| {
type: "resign";
}
| {
move: MoveId;
type: "goToMove";
}
| {
type: "nextMove";
}
| {
type: "previousMove";
}
| {
point: Point;
shape: Shape;
type: "markPoint";
}
| {
point: Point;
text: string;
type: "labelPoint";
}
| {
point: Point;
type: "clearMark";
}
| {
text: string;
type: "setComment";
}
| {
point: Point;
status: GroupStatus;
type: "markGroup";
}
| {
type: "acceptScore";
}
| {
type: "resumePlay";
}
| {
mode: Mode;
type: "setMode";
}
| {
text: string | Uint8Array;
type: "openSgf";
};Every function that takes a game, as data, for apply.
Union Members
Type Literal
ts
{
point: Point;
type: "play";
}Type Literal
ts
{
type: "pass";
}Type Literal
ts
{
type: "resign";
}Type Literal
ts
{
move: MoveId;
type: "goToMove";
}Type Literal
ts
{
type: "nextMove";
}Type Literal
ts
{
type: "previousMove";
}Type Literal
ts
{
point: Point;
shape: Shape;
type: "markPoint";
}Type Literal
ts
{
point: Point;
text: string;
type: "labelPoint";
}Type Literal
ts
{
point: Point;
type: "clearMark";
}Type Literal
ts
{
text: string;
type: "setComment";
}Type Literal
ts
{
point: Point;
status: GroupStatus;
type: "markGroup";
}Type Literal
ts
{
type: "acceptScore";
}Type Literal
ts
{
type: "resumePlay";
}Type Literal
ts
{
mode: Mode;
type: "setMode";
}Type Literal
ts
{
text: string | Uint8Array;
type: "openSgf";
}Opens a file as a new game in review mode; the game given to apply isn't used.