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