* Create new json storage buckets for persistent storage * * @param namespace a "name" or "id" for the bucket. * This is not script scoped and the same storage bucket can be registered in multiple scripts to have access to the same data, this is perfectly safe. * * @examp
(namespace: string)
| 116 | * |
| 117 | */ |
| 118 | createStorageJson<T>(namespace: string) { |
| 119 | let bucket = new Storage.JsonBucket<T>(namespace, this.storagePluginId()); |
| 120 | this.storageBuckets.push(bucket); |
| 121 | |
| 122 | return bucket; |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * @deprecated use {@łink createStorageNumber} |
no test coverage detected