Skip to content

Commit

Permalink
Chore: remove unused iduuid types
Browse files Browse the repository at this point in the history
  • Loading branch information
emielvanseveren committed Jul 20, 2024
1 parent d757a9c commit b9bc4d8
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/app-api/src/lib/validators.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import {
IsUUID,
ValidateNested,
ValidationOptions,
ValidatorConstraint,
ValidatorConstraintInterface,
isUUID,
registerDecorator,
} from 'class-validator';
import { TakaroDTO } from '@takaro/util';
import { Type } from 'class-transformer';
import { APIOutput } from '@takaro/http';

export class ParamId {
@IsUUID('4')
Expand All @@ -29,17 +25,6 @@ export class PogParam {
playerId!: string;
}

export class IdUuidDTO extends TakaroDTO<IdUuidDTO> {
@IsUUID('4')
id!: string;
}

export class IdUuidDTOAPI extends APIOutput<IdUuidDTO> {
@Type(() => IdUuidDTO)
@ValidateNested()
declare data: IdUuidDTO;
}

@ValidatorConstraint({ async: true })
export class IsTypeOrArrayOfType<T> implements ValidatorConstraintInterface {
private typeCheck: (value: unknown) => value is T;
Expand Down

0 comments on commit b9bc4d8

Please sign in to comment.