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.
- package/lib/index.d.ts +3 -3
- 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;
|