1.0.0 • Published 3 years ago

@satankebab/chai-types-no-global v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@types/chai without global declarations

interface Object {
  should: Chai.Assertion;
}

This interface had been causing me headaches a long time before I finally decided to remove it.

The issue is that whenever you define object with property should, TypeScript will give you errors that the type should need to be of type Chai.Assertion. These global declarations are absolute nightmare...