I have a method in class A and I want to use it in class B located in another file, structure:
file 1
class A{
/**
* @private
*/
static method1(){
}
}
file 2
class B{
/**
* @description
* @route POST /Method
* @param {Person} person
*/
method2(person){
A.method1();
}
}
I’ve tried using import, but this error occurred Cannot use import statement outside a module