Documentation

type ActivityRouter​.HasWildcard

True if the pattern ends with a wildcard.

type HasWildcard<T extends string> = T extends `${string}/*`
? true
: T extends "*"
? true
: false;

Related