file1:
export default class Functions {
async functionOne(sessionID: string): Promise<void> {
console.log(sessionID);
}
}
file2:
import Functions from './file1';
Functions.functionOne('test');
An error is occurring:
Error TS2339: Property 'functionOne' does not exist on type 'typeof Functions'.
I'm attempting to invoke a function from a separate file. I've experimented with creating a new instance of the class, but it still results in the same error message.