feat: remove any for autocomplete works with vscode autocomplete

This commit is contained in:
Supan Adit Pratama 2024-11-02 01:14:30 +07:00
parent 2c62d2a077
commit 94faa8329a

View File

@ -84,7 +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 // - 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: // Known issue:
// - OpenAPI ( Swagger ) cannot read any decorator inside this // - OpenAPI ( Swagger ) cannot read any decorator inside this
export const CustomCRUDController = (options?: ControllerOption): any => { export const CustomCRUDController = (options?: ControllerOption) => {
const uniqueIdentifier = `${options?.uniqueIdentifier ?? 'id'}`; const uniqueIdentifier = `${options?.uniqueIdentifier ?? 'id'}`;
class WrapperCRUDController extends SkeletonCRUDController { class WrapperCRUDController extends SkeletonCRUDController {