@micro-router
    Preparing search index...
    • Define a Path by combining the individual input paths in order.

      This is the typical way to construct paths.

      The inputs can be other paths or literal strings. Any literal strings provided will be converted into paths by use of the textSegments path constructor.

      When called with no arguments, returns a root path that matches "/" or "".

      Type Parameters

      • Ps extends (string | Path<string, any>)[]

      Parameters

      • ...paths: Ps

      Returns CombinedPath<Ps>

      path("users", string("userId")); // Path<"/users/:userId", { userId: string }>
      path(); // Path<"/", NoData> - matches root