@appsemble/types 0.19.11 → 0.19.12

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +13 -0
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -569,11 +569,18 @@ export interface ShareActionDefinition extends BaseActionDefinition<'share'> {
569
569
  */
570
570
  title?: Remapper;
571
571
  }
572
+ declare type StorageType = 'indexedDB' | 'localStorage' | 'sessionStorage';
572
573
  export interface StorageReadActionDefinition extends BaseActionDefinition<'storage.read'> {
573
574
  /**
574
575
  * The key of the entry to read from the app’s storage.
575
576
  */
576
577
  key: Remapper;
578
+ /**
579
+ * The mechanism used to read the data from.
580
+ *
581
+ * @default 'indexedDB'
582
+ */
583
+ storage?: StorageType;
577
584
  }
578
585
  export interface StorageWriteActionDefinition extends BaseActionDefinition<'storage.write'> {
579
586
  /**
@@ -584,6 +591,12 @@ export interface StorageWriteActionDefinition extends BaseActionDefinition<'stor
584
591
  * The data to write to the app’s storage.
585
592
  */
586
593
  value: Remapper;
594
+ /**
595
+ * The mechanism used to read the data from.
596
+ *
597
+ * @default 'indexedDB'
598
+ */
599
+ storage?: StorageType;
587
600
  }
588
601
  export interface UserLoginAction extends BaseActionDefinition<'user.login'> {
589
602
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/types",
3
- "version": "0.19.11",
3
+ "version": "0.19.12",
4
4
  "description": "TypeScript definitions reused within Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -30,7 +30,7 @@
30
30
  "test": "jest"
31
31
  },
32
32
  "dependencies": {
33
- "@appsemble/sdk": "0.19.11",
33
+ "@appsemble/sdk": "0.19.12",
34
34
  "@fortawesome/fontawesome-common-types": "^0.2.0",
35
35
  "jsonschema": "^1.0.0",
36
36
  "openapi-types": "^10.0.0",