@rljson/rljson 0.0.5 → 0.0.7
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/dist/rljson.d.ts +4 -4
- package/package.json +3 -3
package/dist/rljson.d.ts
CHANGED
|
@@ -22,9 +22,9 @@ export type TableName = ItemId;
|
|
|
22
22
|
* - `ids` Tables containing item ids
|
|
23
23
|
* - `properties` Tables containing item properties
|
|
24
24
|
*/
|
|
25
|
-
export type
|
|
25
|
+
export type ContentType = 'buffet' | 'cake' | 'collection' | 'ids' | 'properties';
|
|
26
26
|
/** A table in the rljson format */
|
|
27
|
-
export interface RljsonTable<Data extends Json, Type extends
|
|
27
|
+
export interface RljsonTable<Data extends Json, Type extends ContentType> extends Json {
|
|
28
28
|
/** The data rows of the table */
|
|
29
29
|
_data: Data[];
|
|
30
30
|
/** The type of the table */
|
|
@@ -160,9 +160,9 @@ export type BuffetsTable = RljsonTable<Buffet, 'buffet'>;
|
|
|
160
160
|
/**
|
|
161
161
|
* One of the supported Rljson table types
|
|
162
162
|
*/
|
|
163
|
-
export type
|
|
163
|
+
export type TableType = BuffetsTable | PropertiesTable | CollectionsTable | IdSetsTable | CakesTable;
|
|
164
164
|
/** The rljson data format */
|
|
165
165
|
export interface Rljson extends Json {
|
|
166
|
-
[tableId: TableName]:
|
|
166
|
+
[tableId: TableName]: TableType | string;
|
|
167
167
|
}
|
|
168
168
|
export declare const exampleRljson: () => Rljson;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rljson/rljson",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"packageManager": "pnpm@10.6.2",
|
|
5
5
|
"description": "The RLJSON data format specification",
|
|
6
6
|
"homepage": "https://github.com/rljson/rljson",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"vitest": "^3.0.8",
|
|
49
49
|
"vitest-dom": "^0.1.1"
|
|
50
50
|
},
|
|
51
|
-
"
|
|
52
|
-
"@rljson/hash": "^0.0.
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@rljson/hash": "^0.0.9",
|
|
53
53
|
"@rljson/json": "^0.0.7"
|
|
54
54
|
},
|
|
55
55
|
"pnpm": {
|