Skip to main content Link Search Menu Expand Document (external link)

Interpolate overview

Type-level interpolation of the path-to-regexp syntax

Added in v1.0.0


Table of contents


utils

Interpolate (type alias)

Interpolate a path with parameters

Signature

export type Interpolate<P extends string, Params extends ParamsOf<P>> =
  A.Equals<P, string> extends 1 ? string : PathJoin<InterpolateParts<ParseSegments<PathToSegments<P>>, Params>>

Added in v1.0.0