We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0bc0f2 commit 89f7608Copy full SHA for 89f7608
1 file changed
js-and-ts/README.md
@@ -0,0 +1,17 @@
1
+# TypeScript Sample: Mixing TypeScript and JavaScript
2
+
3
+## Overview
4
5
+A sample of how to use the `allowJS` option to use both JavaScript and TypeScript together.
6
+A simple text formatter is provided, written in JavaScript. This formatter is then used
7
+within a TypeScript class to format a computation.
8
9
+To run this sample, you must have `node` installed. You can also use `ts-node` to run this directly
10
+without a compilation from TypeScript to JavaScript.
11
12
+## Running
13
14
+```bash
15
+$ tsc robot.ts`
16
+$ node robot.js`
17
+```
0 commit comments