title: Typescript @types/chai - how do you use Chai.Assertion?
body: <p>I'm trying to use chai in typescript and I can't get any of the assertions to work as I would expect.</p>
  
  <p>package.json</p>
  
  <pre><code>"dependencies": {
    "@types/chai": "^4.0.1",
    "@types/mocha": "^2.2.41",
    "chai": "^4.1.0",
    "mocha": "^3.4.2",
    "typescript": "2.4.2"
  }
  </code></pre>
  
  <p>All of these emit compiler errors:</p>
  
  <pre><code>import * as chai from 'chai';
  const expect = chai.expect;
  const assert = chai.assert;
  
  const expect = chai.expect;
  expect(myVar).to.be.empty();
  expect(myVar).to.be.empty;
  expect(myVar).to.be.undefined();
  expect(myVar).to.be.undefined;
  </code></pre>
  
  <p>If I try to import assertions directly - I don't see empty() as a valid assertion:</p>
  
  <pre><code>const assert = chai.assert;
  assert.empty??? not there?
  </code></pre>
  
  <p>Any ideas are welcome.</p>
  
  <p>Thanks - Chad</p>
  
  <hr>
  
  <p><strong>Quick answer</strong></p>
  
  <p>Shaun points out below - change the import to:</p>
  
  <pre><code>import { assert, expect } from 'chai';
  </code></pre>
  
  <p>Thanks Shaun</p>