mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-11-13 23:35:39 +01:00
13 lines
250 B
TypeScript
13 lines
250 B
TypeScript
|
|
import {
|
||
|
|
IsArray,
|
||
|
|
IsNotEmpty,
|
||
|
|
IsString
|
||
|
|
} from 'class-validator';
|
||
|
|
import { ComposeValidators } from './compose.validator';
|
||
|
|
|
||
|
|
export const IsStringList = ComposeValidators(
|
||
|
|
IsArray(),
|
||
|
|
IsString({ each: true }),
|
||
|
|
IsNotEmpty({ each: true }),
|
||
|
|
);
|