MCPcopy Create free account
hub / github.com/TanStack/router / encodePathParam

Function encodePathParam

packages/router-core/src/path.ts:404–410  ·  view source on GitHub ↗
(
  value: string,
  decoder?: InterpolatePathOptions['decoder'],
)

Source from the content-addressed store, hash-verified

402}
403
404function encodePathParam(
405 value: string,
406 decoder?: InterpolatePathOptions['decoder'],
407) {
408 const encoded = encodeURIComponent(value)
409 return decoder?.(encoded) ?? encoded
410}

Callers 1

encodeParamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected