Skip to content

Groups

@tsed/schema

Usage

typescript
import { Groups } from "@tsed/schema";

See /packages/specs/schema/src/types/decorators/common/groups.ts.

Overview

ts
function Groups<T>(groupsDefinition: Record<string, (keyof T)[]>): ClassDecorator;
export function Groups<T>(groupName: string, groups: string[]): ParameterDecorator;
export function Groups(...groups: string[]): Function;

Description

Apply groups validation strategy

Released under the MIT License.