@storylet-studio/model 0.4.0 → 0.4.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/dist/index.d.cts CHANGED
@@ -981,6 +981,8 @@ declare const SAVE_SCHEMA = "storylets/save@1";
981
981
  interface PlayRecord {
982
982
  /** Card and outcome by gameId (feeds the play-history functions). */
983
983
  card: string;
984
+ /** "" for a card with no outcomes, played with none: the key is always
985
+ * there, so a save's shape does not depend on the card. */
984
986
  outcome: string;
985
987
  turn: number;
986
988
  }
package/dist/index.d.ts CHANGED
@@ -981,6 +981,8 @@ declare const SAVE_SCHEMA = "storylets/save@1";
981
981
  interface PlayRecord {
982
982
  /** Card and outcome by gameId (feeds the play-history functions). */
983
983
  card: string;
984
+ /** "" for a card with no outcomes, played with none: the key is always
985
+ * there, so a save's shape does not depend on the card. */
984
986
  outcome: string;
985
987
  turn: number;
986
988
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storylet-studio/model",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Storylets data-model types: source shards (project / box / tags / hands / deck), the compiled bundle, the save envelope. The shape source-of-truth.",
5
5
  "type": "module",
6
6
  "license": "MIT",