From 8696b25e9b345c00ce0e73647ad5b392dda6507c Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Thu, 28 Aug 2025 14:31:06 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(index.d.ts):=20add=20Base64Pac?= =?UTF-8?q?kage=20interface=20for=20encoding=20and=20decoding=20data?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.d.ts b/index.d.ts index 3489c27..e927a4b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -715,6 +715,14 @@ declare global { : string } + interface Base64Package { + encode(data: string|Int8Array): string + decode(data: string): string + decode(data: string, options: {returnBytes: true}): Int8Array + decode(data: string, options: {returnBytes: false}): string + decode(data: string, options: {returnBytes?: boolean}): string | Int8Array + } + export interface HookContext extends GetHookData, GetHookGetOnlyData,