remix/route-pattern/join · Type

View Source

JoinPatterns

Summary

Join two pattern source strings together at the type level.

Signature

type JoinPatterns<A, B> = string extends A | B ? string : _JoinPatterns<Parse<A>, Parse<B>>