1.0.11 ā€¢ Published 3 years ago

@webipie/common v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
3 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

3 years ago

1.0.10

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago