From: Chris Duncan Date: Fri, 18 Jul 2025 04:41:08 +0000 (-0700) Subject: Use type alias to simplify definitions. X-Git-Tag: v0.10.5~56^2~9 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=0c083189030889c62580ca7d1278e6d02f46e0e6;p=libnemo.git Use type alias to simplify definitions. --- diff --git a/src/types.d.ts b/src/types.d.ts index dfb5e6a..c868e7f 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -299,10 +299,12 @@ export type Headers = { [key: string]: any } +export type Key = string | Uint8Array + export type KeyPair = { - publicKey?: string - privateKey?: string index?: number + privateKey?: Key + publicKey?: Key } /**