DefinitelyTyped/types/mocha
pana-cc 81b2d6f869 Change type PendingSuiteFunction with interface (#26970)
* Change type PendingSuiteFunction with interface

This allows the PendingSuiteFunction interface to be augmented with additional overloads.
The feature is used in [mocha-typescript](http://github.com/pana-cc/mocha-typescript).

P. S. Where can I add tests for this? It has been broken 3 or 4 times before. Interface get frequently renamed (e.g. from ISuite to Suite) or simple interfaces get declared with types.

I need to set interfaces:
```
declare namespace Mocha {
    interface SuiteFunction {
    }
    interface TestFunction {
    }
    interface PendingSuiteFunction {
    }
    interface PendingTestFunction {
    }
}
```
To be set in stone so their augmentations don't get broken.

* Add tests, disable callable-types in tslint, add experimentalDecorators
2018-07-15 12:26:43 -07:00
..
index.d.ts Change type PendingSuiteFunction with interface (#26970) 2018-07-15 12:26:43 -07:00
mocha-tests.ts Change type PendingSuiteFunction with interface (#26970) 2018-07-15 12:26:43 -07:00
tsconfig.json Change type PendingSuiteFunction with interface (#26970) 2018-07-15 12:26:43 -07:00
tslint.json Change type PendingSuiteFunction with interface (#26970) 2018-07-15 12:26:43 -07:00