i have one typescript file with name 'abc.ts' having a method call 'ScanCode()'. i have one separate js file "sample.js" having a method foo(). i want to call the scancode method of typescript in this sample js' foo method.
I tried to import ts file in javascript but its not able to idetify 'import' function.