# CheckPattern

`type` in `plugin-tasks` · v0.1.0-next.1

<https://seedcord.org/docs/packages/plugin-tasks/0.1.0-next.1/types/check-pattern>

## Declaration

```ts
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)`;
```
