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