move-by-move 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.d.ts +3 -3
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- interface GameAction {
1
+ export interface GameAction {
2
2
  type: string;
3
3
  }
4
- declare type GameState = Object;
5
- declare type RuleIO = [action: GameAction, state: GameState];
4
+ export declare type GameState = Object;
5
+ export declare type RuleIO = [action: GameAction, state: GameState];
6
6
  declare const createGame: (rules: ((input: RuleIO) => RuleIO)[], initialGameState: GameState) => {
7
7
  subscribe: (listener: Function) => () => void;
8
8
  getState: () => Object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "move-by-move",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Simple game engine for turn based games",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",