* Create a new persistent variable. * * This is built on top of storage buckets so you can think of it as a single entry inside a storage bucket. * * @param key Key for the variable inside the storage bucket, the same key in another script will refer to the same entry * @p
(key: string, options?: StorageVarExtraOptions)
| 159 | * @returns |
| 160 | */ |
| 161 | createStorageVarJson<T>(key: string, options?: StorageVarExtraOptions) { |
| 162 | const namespace = options?.namespace ?? "bl:vars_json"; |
| 163 | return new Storage.JsonVar<T>(namespace, key, this.storagePluginId()); |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * Create a new persistent variable. |
no test coverage detected