type CheckPattern<Texts extends string[]> =
Texts["length"] extends keyof Layouts
? CheckFields<Texts, Layouts[Texts["length"]]>
: `it has ${Texts["length"]} field${Texts["length"] extends 1 ? "" : "s"}. Write 5 (minute first), 6 (second first) or 7 (second first, year last)`;Texts
Texts extends string[]