@inglorious/engine 24.2.0 → 24.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inglorious/engine",
3
- "version": "24.2.0",
3
+ "version": "24.2.2",
4
4
  "description": "A JavaScript game engine written with global state, immutability, and pure functions in mind. Have fun(ctional programming) with it!",
5
5
  "author": "Matteo Antony Mistretta <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
6
6
  "license": "MIT",
@@ -41,14 +41,14 @@
41
41
  },
42
42
  "sideEffects": false,
43
43
  "dependencies": {
44
- "@inglorious/store": "^12.9.2",
45
- "@inglorious/utils": "^5.4.2"
44
+ "@inglorious/store": "^12.9.4",
45
+ "@inglorious/utils": "^5.4.4"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "vitest": "^5.1.1"
49
49
  },
50
50
  "devDependencies": {
51
- "@inglorious/eslint-config": "1.2.0",
51
+ "@inglorious/eslint-config": "1.2.2",
52
52
  "prettier": "^3.10.1",
53
53
  "typescript": "~7.0.2",
54
54
  "vite": "^8.3.8",
@@ -1,4 +1,4 @@
1
- import type { GamepadEntity, gamepad, gamepadsPoller } from "./gamepad"
1
+ import type { gamepad, GamepadEntity, gamepadsPoller } from "./gamepad"
2
2
  import type { input, InputEntity } from "./input"
3
3
  import type { InputMapping, keyboard, KeyboardEntity } from "./keyboard"
4
4
  import type { pointer, PointerEntity } from "./pointer"
package/types/test.d.ts CHANGED
@@ -30,7 +30,9 @@ export interface TestGame {
30
30
  * Makes a game to drive in a test, with its sounds watched. `extendWith` adds
31
31
  * the game's own moves, which can call the rest with `this`.
32
32
  */
33
- export function createGame<TExtra extends Record<string, unknown> = {}>(
33
+ export function createGame<
34
+ TExtra extends Record<string, unknown> = Record<never, never>,
35
+ >(
34
36
  gameConfig: GameConfig & { entities: { game: BaseEntity | EntityConfig } },
35
37
  extendWith?: TExtra & ThisType<TestGame & TExtra>,
36
38
  ): TestGame & TExtra