diff --git a/libs/skeleton/src/interfaces/controller/skeleton-crud.controller.interface.ts b/libs/skeleton/src/interfaces/controller/skeleton-crud.controller.interface.ts index bf33f46..9d3a6b4 100644 --- a/libs/skeleton/src/interfaces/controller/skeleton-crud.controller.interface.ts +++ b/libs/skeleton/src/interfaces/controller/skeleton-crud.controller.interface.ts @@ -1,8 +1,8 @@ import { IPaginationEntity } from '@autocrud/skeleton/entities/pagination.entity'; -export interface ISkeletonCRUDController { +export interface ISkeletonCRUDController { create(): Promise; - readSelected(id): Promise; + readSelected(id: E): Promise; readPagination(): Promise>; readEntire(): Promise; updatePartial(): Promise; diff --git a/libs/skeleton/src/skeleton-crud.controller.ts b/libs/skeleton/src/skeleton-crud.controller.ts index 444b1c0..3e9be38 100644 --- a/libs/skeleton/src/skeleton-crud.controller.ts +++ b/libs/skeleton/src/skeleton-crud.controller.ts @@ -2,14 +2,16 @@ import { Delete, Get, Param, Patch, Post, Put } from '@nestjs/common'; import { ISkeletonCRUDController } from './interfaces/controller/skeleton-crud.controller.interface'; import { IPaginationEntity } from './entities/pagination.entity'; -export class SkeletonCRUDController implements ISkeletonCRUDController { +export class SkeletonCRUDController + implements ISkeletonCRUDController +{ @Post() async create(): Promise { throw new Error('Method not implemented.'); } @Get(':id') - async readSelected(@Param('id') id): Promise { + async readSelected(@Param('id') id: E): Promise { throw new Error('Method not implemented.'); }