tests/inputs/TypeScript_2.ts
raw| 1 | import { createServer } from 'http' // from @frankdugan3, an example of TypeScript code |
| 2 | |
| 3 | export const server = createServer((req, res) => { // that was misidentified as Qt Linguist in cloc |
| 4 | res.writeHead(200, { 'Content-type': 'text/plain' }) // versions before 1.78 |
| 5 | res.write('Hello world!') |
| 6 | res.end() |
| 7 | }).listen(8080) |