Skip to content

Commit f511aa7

Browse files
committed
fixture: add code that only works in TypeScript
1 parent f9e1094 commit f511aa7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fixtures/js/render.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
function render() {
2-
document.getElementById('app').innerHTML = "<h1>Welcome to Your TypeScript App</h1>";
2+
const html: string = "<h1>Welcome to Your TypeScript App</h1>";
3+
document.getElementById('app').innerHTML = html;
34
}
45

56
export default render;

0 commit comments

Comments
 (0)