1.0.11 • Published 4 years ago

@webipie/common v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Install

npm install @webipie/common

How It Works

/**
    main.ts 
**/
import AllExceptionFilter from '@webipie/common';


app.useGlobalFilters(new AllExceptionFilter());

/**
    Dto's
**/
import { isRequired, isNotMongoId } from '@webipie/common';
export class CreateStoreDto {
  @IsNotEmpty({
    message: (validationData: ValidationArguments) =>
      isRequired(validationData.property),
  })
  readonly name: string;
  // ... 
}

/**
    cats.controller.ts
**/
import { IdParam } from '@webipie/common';

@Get('/:id')
  async getOneCat(@Param() param: IdParam): Promise<Store> {
    return await this.catService.getOneCat(param.id);
  }

Author

šŸ‘¤ Webipie

This README was generated with by readme-md-generator

1.0.11

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago