typescript import as code example
Example 1: import js file in typescript
// Add to tsconfig.json:
{
"compilerOptions": {
...
"allowJs": true
...
}
}
import MyModule from './../pages/MyModule';
Example 2: export interface typescript
interface Props {}
export interface IRefered {
name: string
}