Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

import js file in typescript

// Add to tsconfig.json:
{
  "compilerOptions": {
      ...
      "allowJs": true
      ...
  }
}
  
import MyModule from './../pages/MyModule';
 
PREVIOUS NEXT
Tagged: #import #js #file #typescript
ADD COMMENT
Topic
Name
7+7 =