import { ParseUrlParams } from "typed-url-params" function assert<T extends string = string>(r: ParseUrlParams<T>): asserts r is ParseUrlParams<T> {} assert<"/:asd/b">({ asd: "" }) assert<"/xxx/:asd/bbb:dsa">({ asd: "", dsa: "" }) assert<"/xxx/:asd/bbb/:dsa">({ asd: "", dsa: "" }) assert<"/xxx/:asd/bbb/:dsa">({ asd: "", dsa: "" }) assert<"/:test*-bar">({ test: [] }) assert<"/:test*-bar">({}) asser