chore: known issue editor for custom crud

This commit is contained in:
Supan Adit Pratama 2024-11-02 01:24:55 +07:00
parent 3ca746548e
commit 5c083f3add

View File

@ -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'}`;