Join<K, P, S>:K extends string | number ? P extends string | number ? `${K}${"" extends P ? "" : S}${P}` : never : never
This type represents the joining of two types, separated by a string, defaulting to dot.
Type Parameters
K
P
S extends string
Remarks
This type is useful when you have separate field representing types, and you need
to represent the idea of a full path. So if you have the types foo and bar, you
may use Join to provide the type foo.bar.
This type represents the joining of two types, separated by a string, defaulting to dot.