javascript - Importing Chai in Typescript -


i'm trying use chai in typescript.

chai's javascript example shows as:

var should = require('chai').should(); 

i downloaded type definition:

tsd install chai 

...referenced file, tried import

/// <reference path='../typings/chai/chai.d.ts' /> import should = require('chai').should(); 

i get:

error ts1005: ';' expected 

...any idea how this?

the tests chai typings following:

import chai = require('chai'); var should = chai.should(); 

does work you?


Comments