From 5c083f3add4b1122a1faafb81e657f7e967e754a Mon Sep 17 00:00:00 2001 From: Supan Adit Pratama Date: Sat, 2 Nov 2024 01:24:55 +0700 Subject: [PATCH] chore: known issue editor for custom crud --- libs/skeleton/src/skeleton-crud.controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/skeleton/src/skeleton-crud.controller.ts b/libs/skeleton/src/skeleton-crud.controller.ts index f0469a7..65756f5 100644 --- a/libs/skeleton/src/skeleton-crud.controller.ts +++ b/libs/skeleton/src/skeleton-crud.controller.ts @@ -84,6 +84,7 @@ export class SkeletonCRUDController implements ISkeletonCRUDController { // - Using environment variable is possible to set in the decorator and been tested but... it could lead to human error and more issue than using this which already automated and configured // Known issue: // - OpenAPI ( Swagger ) cannot read any decorator inside this +// - Define the return using `any` will remove ability for LSP to read the result type and lead to broken autocomplete function for most of editor export const CustomCRUDController = (options?: ControllerOption) => { const uniqueIdentifier = `${options?.uniqueIdentifier ?? 'id'}`;