@satankebab/chai-types-no-global
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@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...

/@satankebab/chai-types-no-global/

    Package Sidebar

    Install

    npm i @satankebab/chai-types-no-global

    Weekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    10.3 kB

    Total Files

    3

    Last publish

    Collaborators

    • satankebab