]> git.codecow.com Git - libnemo.git/commitdiff
Use type alias to simplify definitions.
authorChris Duncan <chris@zoso.dev>
Fri, 18 Jul 2025 04:41:08 +0000 (21:41 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 18 Jul 2025 04:41:08 +0000 (21:41 -0700)
src/types.d.ts

index dfb5e6a52ca6e36e82bc0aec0d187524f2575100..c868e7f0e1defdd08d1a86adae2265b10d72bc10 100644 (file)
@@ -299,10 +299,12 @@ export type Headers = {
        [key: string]: any
 }
 
+export type Key = string | Uint8Array<ArrayBuffer>
+
 export type KeyPair = {
-       publicKey?: string
-       privateKey?: string
        index?: number
+       privateKey?: Key
+       publicKey?: Key
 }
 
 /**