From 41e28d7a3efa139ed5d41372535b6c9339b94c69 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Sat, 18 Apr 2026 18:06:21 +0100 Subject: [PATCH] Updates --- dist/types/index.d.ts | 15 ++++++++++++++- package.json | 2 +- src/types/index.ts | 15 ++++++++++++++- 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/dist/types/index.d.ts b/dist/types/index.d.ts index 4f02ed6..04203cc 100644 --- a/dist/types/index.d.ts +++ b/dist/types/index.d.ts @@ -241,7 +241,20 @@ export type BunextPageProps = BunextPageModuleServerReturn; -export type BunextPageModuleServerReturnURLObject = URL & {}; +export type BunextPageModuleServerReturnURLObject = { + hash: string; + host: string; + hostname: string; + href: string; + origin: string; + password: string; + pathname: string; + port: string; + protocol: string; + search: string; + searchParams: Record; + username: string; +}; export type BunextPageModuleServerRedirect = { destination: string; permanent?: boolean; diff --git a/package.json b/package.json index fa98eb0..33c27b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moduletrace/bunext", - "version": "1.0.83", + "version": "1.0.84", "main": "dist/index.js", "module": "index.ts", "dependencies": { diff --git a/src/types/index.ts b/src/types/index.ts index 34e338c..5f8570f 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -272,7 +272,20 @@ export type BunextPageProps< Q extends { [k: string]: any } = { [k: string]: any }, > = BunextPageModuleServerReturn; -export type BunextPageModuleServerReturnURLObject = URL & {}; +export type BunextPageModuleServerReturnURLObject = { + hash: string; + host: string; + hostname: string; + href: string; + origin: string; + password: string; + pathname: string; + port: string; + protocol: string; + search: string; + searchParams: Record; + username: string; +}; export type BunextPageModuleServerRedirect = { destination: string;