Skip to content

Documentation


Documentation / @blazetrails/actionpack / UrlFor

Variable: UrlFor ​

const UrlFor: { _routesContext: { }; _withRoutes: { }; fullUrlFor: { }; optimizeRoutesGeneration: { }; routeFor: (this, name, ...args) => string; urlFor: (this, options?) => string; urlOptions: (this) => Record<string, unknown>; }

Defined in: packages/actionpack/lib/action-dispatch/routing/url-for.ts:189

Type Declaration ​

_routesContext ​

_routesContext: { }

_withRoutes ​

_withRoutes: { }

fullUrlFor ​

fullUrlFor: { }

optimizeRoutesGeneration ​

optimizeRoutesGeneration: { }

routeFor ​

routeFor: (this, name, ...args) => string

Parameters ​

ParameterType
thisUrlForHost
namestring
...argsunknown[]

Returns ​

string

urlFor ​

urlFor: (this, options?) => string

Parameters ​

ParameterType
thisUrlForHost
options?UrlForOptions

Returns ​

string

urlOptions ​

urlOptions: (this) => Record<string, unknown>

Parameters ​

ParameterType
thisUrlForHost

Returns ​

Record<string, unknown>