From 824bb41937b6c026ed628e0285ce5e4d8b4348f2 Mon Sep 17 00:00:00 2001 From: Milan Bombsch Date: Tue, 16 Sep 2025 09:02:16 +0200 Subject: [PATCH] remove wrong function overload --- .../composables/useDrupalRoute/index.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/runtime/composables/useDrupalRoute/index.ts b/src/runtime/composables/useDrupalRoute/index.ts index a5f8656..ee7cd68 100644 --- a/src/runtime/composables/useDrupalRoute/index.ts +++ b/src/runtime/composables/useDrupalRoute/index.ts @@ -46,24 +46,6 @@ type UseDrupalRouteQueryInput = | undefined | null -// Overload signature to make the return type nullable when setting noError to -// true, because it allows the composable to return if no route entity is -// available. -export function useDrupalRoute( - queryInput: UseDrupalRouteQueryInput, - options: { noError: true }, - providedRoute?: RouteLocationNormalizedLoaded, -): Promise> - -// Overload signature to make the return type non nullable without options or -// when the option noError is false, because the code ensures that the return -// type is always going to be the passed in generic type. -export function useDrupalRoute( - queryInput: UseDrupalRouteQueryInput, - options?: { noError?: false } | null, - providedRoute?: RouteLocationNormalizedLoaded, -): Promise> - /** * Composable that handles the Drupal routing for 404, redirects, metatags and * entities.