]> git.codecow.com Git - libnemo.git/commitdiff
Update type definition file.
authorChris Duncan <chris@zoso.dev>
Sun, 10 Aug 2025 05:16:00 +0000 (22:16 -0700)
committerChris Duncan <chris@zoso.dev>
Sun, 10 Aug 2025 05:16:00 +0000 (22:16 -0700)
src/types.d.ts

index c71f9c263909c254f90b53deb11e0e799552cbd4..3acec79fe212fb3d0ec4a86787a2414a4796ddae 100644 (file)
@@ -613,6 +613,7 @@ export declare class Wallet {
        */
        static restore (id: string): Promise<Wallet>
        get id (): string
+       get safe (): WorkerQueue
        get type (): WalletType
        /** Set when calling `create()` and self-destructs after the first read. */
        get mnemonic (): string | undefined
@@ -923,17 +924,15 @@ export declare class Ledger extends Wallet {
 * Processes a queue of tasks using Web Workers.
 */
 export declare class WorkerQueue {
+       #private
        static get instances (): WorkerQueue[]
        /**
        *       Creates a Web Worker from a stringified script.
        *
        * @param {string} worker - Stringified worker class body
-       * @param {number} [count=1] - Integer between 1 and CPU thread count shared among all Pools
        */
        constructor (worker: string)
-       assign<T extends Data> (data: NamedData): Promise<NamedData<T>>
        prioritize<T extends Data> (data: NamedData): Promise<NamedData<T>>
+       request<T extends Data> (data: NamedData): Promise<NamedData<T>>
        terminate (): void
 }
-
-export declare const PasskeyWorker: WorkerQueue