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.