From 335c2cb45236a4832b4b5cccb869f19f458bfc2b Mon Sep 17 00:00:00 2001 From: microshine Date: Fri, 24 Mar 2023 13:16:31 +0100 Subject: [PATCH] fix: type declaration for Crypto --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 186a7e5..8275665 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,7 +1,7 @@ export declare class Crypto implements globalThis.Crypto { public subtle: SubtleCrypto; public getRandomValues(array: T): T; - public randomUUID(): string; + randomUUID(): `${string}-${string}-${string}-${string}-${string}`; } export declare class CryptoKey implements globalThis.CryptoKey {