]> git.codecow.com Git - libnemo.git/commitdiff
Update getter docs.
authorChris Duncan <chris@zoso.dev>
Sun, 21 Sep 2025 21:33:12 +0000 (14:33 -0700)
committerChris Duncan <chris@zoso.dev>
Sun, 21 Sep 2025 21:33:12 +0000 (14:33 -0700)
src/lib/database.ts
src/lib/rolodex.ts
src/lib/wallet/index.ts

index db6b9de0b28768ac6498f9e2c4903da0f609982b..b6a7ef410020835589bb440698be47043231d3f1 100644 (file)
@@ -7,9 +7,15 @@ import { Data, NamedData } from '#types'
 * Encrypts and stores data in the browser using IndexedDB.
 */
 export class Database {
-       static DB_NAME = 'libnemo'
-       static DB_STORES = ['Wallet', 'Account', 'Rolodex']
        static #storage: IDBDatabase
+       /**
+       * @returns {'libnemo'}
+       */
+       static get DB_NAME (): 'libnemo' { return 'libnemo' }
+       /**
+       * @returns {['Wallet', 'Account', 'Rolodex']}
+       */
+       static get DB_STORES (): ['Wallet', 'Account', 'Rolodex'] { return ['Wallet', 'Account', 'Rolodex'] }
 
        /**
        * Inserts records in a datastore, throwing if they already exist.
index ec2b9ed8ca459f99d801b58f50dee1fa7e8df653..f3de8952608a5dee352e56ace60505e12bed1da6 100644 (file)
@@ -11,7 +11,11 @@ import { Tools } from './tools'
 * saved under one nickname.
 */
 export class Rolodex {
+       /**
+       * @returns {'Rolodex'}
+       */
        static get DB_NAME (): 'Rolodex' { return 'Rolodex' }
+
        /**
        * Adds an address to the rolodex under a specific nickname.
        *
index 8ad399e0c9d0a41df1783a3032343e9791af2a71..e3bf4104d1d8f9239ff42205cc584344ea8f9b1e 100644 (file)
@@ -33,6 +33,9 @@ export type WalletType = 'BIP-44' | 'BLAKE2b' | 'Ledger'
 * three types of wallets are supported: BIP-44, BLAKE2b, and Ledger.\r
 */\r
 export class Wallet {\r
+       /**\r
+       * @returns {'Wallet'}\r
+       */\r
        static get DB_NAME (): 'Wallet' { return 'Wallet' }\r
 \r
        /**\r