Skip to content

Setup typed contract

Randar Puust edited this page Mar 17, 2017 · 5 revisions

Installation

You have a few options for installing typed-contract.

Direct reference

If your project is fairly simple or you don't want to use a package manager

  1. Download either typedcontract.js (typedcontract.js) or typedcontract.min.js (typedcontract.min.js) from Git to a local directory.
  2. If you are going to be accessing it from TypeScript, you should also download typed.contract.d.ts (typedcontract.d.ts) and typedcontract.js.map (typedcontract.js.map).
  3. Create a script tag that references the .js file.

NPM

If you would prefer to use a package manager, you will need NPM to install typedcontract.

  1. Install it into your project: npm install typedcontract –save
Clone this wiki locally