* 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)
| 173 | * @returns |
| 174 | */ |
| 175 | createStorageVarNumber(key: string, options?: StorageVarExtraOptions) { |
| 176 | const namespace = options?.namespace ?? "bl:vars_number"; |
| 177 | return new Storage.NumberVar(namespace, key, this.storagePluginId()); |
| 178 | } |
| 179 | |
| 180 | |
| 181 | /** |
no test coverage detected