Skip to content

Commit

Permalink
docs(typescript): use new signature in move example
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Jan 25, 2022
1 parent 7663346 commit 12170f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/documentation/typescript.md
Expand Up @@ -12,7 +12,7 @@ export interface MyGameState {
// aka 'G', your game's state
}

const move: Move<MyGameState> = (G, ctx) => {};
const move: Move<MyGameState> = ({ G, ctx }) => {};

export const MyGame: Game<MyGameState> = {
// ...
Expand Down

0 comments on commit 12170f5

Please sign in to comment.