Skip to content

Type Alias: NotationCheck ​

ts
type NotationCheck = 
  | {
  ok: true;
  spec: RollSpec;
}
  | {
  ok: false;
  problem: NotationProblem;
  part: string;
  message: string;
};

Defined in: src/notation.ts:133

What checkNotation found: the spec, or the part it refused and why.

Union Members ​

Type Literal ​

ts
{
  ok: true;
  spec: RollSpec;
}

Type Literal ​

ts
{
  ok: false;
  problem: NotationProblem;
  part: string;
  message: string;
}

ok ​

ts
ok: false;

problem ​

ts
problem: NotationProblem;

part ​

ts
part: string;

The piece of the text that was refused, as typed.

message ​

ts
message: string;

The refusal in a plain English sentence.

MIT © John Morris