Skip to content

Instantly share code, notes, and snippets.

@serrg
serrg / index.ts
Last active March 5, 2022 02:36
simple state machine
interface Transition {
name: string;
from: string;
to: string;
}
export interface Action {
[actionName: string]: () => void;
}

Keybase proof

I hereby claim:

  • I am serrg on github.
  • I am serrg (https://keybase.io/serrg) on keybase.
  • I have a public key whose fingerprint is 424F 3E45 79F5 C76D F3CD EB4F 1A5E 73AB 7658 B5FF

To claim this, I am signing this object: