Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

LinkResolveInput

interfaz Since 1.8.0

Enlace que recibe un LinkResolver: la ruta de to, el href que construyó href() (o el resolvedor anterior) y el hreflang del <a>, si lo tiene.

ts
import type { LinkResolveInput } from "@meekojs/meeko/framework";

Source code src/shared/link.ts:17

Declaración #

ts
interface LinkResolveInput {
	readonly to: string
	readonly href: string
	readonly hreflang: string | undefined
}

Example #

ts
import type { LinkResolveInput } from "@meekojs/meeko/framework";

const link: LinkResolveInput = { to: "/users/[id]", href: "/users/7?tab=perfil", hreflang: undefined };

Propiedades #

to #

propiedad sólo lectura

readonly to: string

ID de la ruta de to, sin sustituir los parámetros: "/users/[id]".

href #

propiedad sólo lectura

readonly href: string

href del enlace, con parámetros, búsqueda y fragmento: "/users/7?tab=perfil".

hreflang #

propiedad sólo lectura

readonly hreflang: string | undefined

Atributo hreflang del enlace (escrito, con bind:hreflang o en bind); undefined sin él.

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/shared/link.ts