Install our build dependencies
First ensure TypeScript and Typings are installed globally.
npm install -g typescript typings
You obviously know about TypeScript, but you might not know about Typings. Typings is a package manager for grabbing definition files. We’ll now use Typings to grab declaration files for Knockout:
typings install --global --save dt~knockout
The --global
flag will tell Typings to grab any declaration files from DefinitelyTyped, a repository of community-authored .d.ts
files. This command will create a file called typings.json
and a folder called typings
in the current directory.
Please login to continue.