Skip to content

Commit

Permalink
fix(fixtures): use "better" syntax for TypeScript import/export
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Mar 20, 2020
1 parent bdf8ba4 commit e053a5e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fixtures/js/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import render = require('./render');
import render from './render';

render();
render();
2 changes: 1 addition & 1 deletion fixtures/js/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ function render() {
document.getElementById('app').innerHTML = "<h1>Welcome to Your TypeScript App</h1>";
}

export = render;
export default render;
2 changes: 1 addition & 1 deletion fixtures/js/render2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ function render() {
document.getElementById('app').innerHTML = "<h1>Welcome to Your TypeScript App</h1>";
}

export = render;
export default render;

0 comments on commit e053a5e

Please sign in to comment.