kinetex - v1.0.0-rc.1
    Preparing search index...

    Function fillPathParams

    • Replace named parameters in a path template (":param" style, Express-compatible).

      Parameters

      • template: string

        The path template (e.g. "/users/:id/posts/:postId").

      • params: Record<string, string | number>

        Parameter values keyed by name.

      Returns string

      The filled path.

      If a required param is missing.