Build code introspection service (#7760)

Starting to use ts-morph to retrieve function parameters
This commit is contained in:
Thomas Trompette
2024-10-17 15:08:42 +02:00
committed by GitHub
parent ddbfabfc99
commit f338d01b4f
7 changed files with 278 additions and 7 deletions

View File

@ -0,0 +1,12 @@
import { CustomException } from 'src/utils/custom-exception';
export class CodeIntrospectionException extends CustomException {
code: CodeIntrospectionExceptionCode;
constructor(message: string, code: CodeIntrospectionExceptionCode) {
super(message, code);
}
}
export enum CodeIntrospectionExceptionCode {
ONLY_ONE_FUNCTION_ALLOWED = 'ONLY_ONE_FUNCTION_ALLOWED',
}