@woosh/meep-engine 2.91.3 → 2.91.4

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
@@ -5,7 +5,7 @@
5
5
  "description": "Fully featured ECS game engine written in JavaScript",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.91.3",
8
+ "version": "2.91.4",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -1,19 +1,17 @@
1
- export class TableRecord {
2
- /**
3
- *
4
- * @param {Object} schema
5
- */
6
- constructor(schema: any);
7
- set value(arg: this);
8
- get value(): this;
9
- get table_schema(): RowFirstTableSpec;
10
- /**
11
- *
12
- * @param {RowFirstTable} table
13
- * @param {number} row_index
14
- */
15
- bind(table: RowFirstTable, row_index: number): void;
16
- #private;
17
- }
18
- import { RowFirstTableSpec } from "../RowFirstTableSpec.js";
19
- //# sourceMappingURL=TableRecord.d.ts.map
1
+ import {BinaryDataType} from "../../../binary/type/BinaryDataType";
2
+
3
+ interface IBinarySchema {
4
+ [k: string]: BinaryDataType
5
+ }
6
+
7
+ export class TableRecord<T extends IBinarySchema> {
8
+ constructor(type: T)
9
+
10
+ readonly table_schema: RowFirstTableSpec
11
+
12
+ get value(): { [prop in keyof T]: number }
13
+ set value(v: Partial<{ [prop in keyof T]: string }> | { [prop in keyof T]: number })
14
+
15
+ bind(table: RowFirstTable, row_index: number): void
16
+
17
+ }