Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions src/runtime/composables/useDrupalRoute/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T extends object = object>(
queryInput: UseDrupalRouteQueryInput,
options: { noError: true },
providedRoute?: RouteLocationNormalizedLoaded,
): Promise<UseDrupalRoute<T | undefined>>

// 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<T extends object = object>(
queryInput: UseDrupalRouteQueryInput,
options?: { noError?: false } | null,
providedRoute?: RouteLocationNormalizedLoaded,
): Promise<UseDrupalRoute<T>>

/**
* Composable that handles the Drupal routing for 404, redirects, metatags and
* entities.
Expand Down