MCPcopy Index your code
hub / github.com/TanStack/router / encodePathParam

Function encodePathParam

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

Source from the content-addressed store, hash-verified

428}
429
430function encodePathParam(
431 value: string,
432 decoder?: InterpolatePathOptions['decoder'],
433) {
434 const encoded = encodeURIComponent(value)
435 return decoder?.(encoded) ?? encoded
436}

Callers 1

encodeParamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected