Skip to content
An example of how start using TypeScript within a JavaScript project
JavaScript HTML TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
design
src
test
.babelrc
.browserslistrc
.editorconfig
.eslintrc
.gitignore
LICENSE
README.md
karma.conf.js
package-lock.json
package.json
tsconfig.json
webpack.config.js

README.md

javascript-with-typescript

An example of how to use webpack with Babel to start using TypeScript within an existing JavaScript project.

Review the TypeScript file src/wordCountCalculator.ts and it’s corresponding tests test/wordCountCalculator_test.js which are still in JavaScript.

The following article accompanies this repo.
https://keepinguptodate.com/pages/2019/12/gradually-migrating-to-typescript/

Screenshot of word count example webpage

Screenshot of word count example webpage

Branches

This repo contains two branches so the code can be checked out before and after adding TypeScript support.

You can’t perform that action at this time.