You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adapt the definitions to it, and drop all the hacks. It will probably cause a Backwards compatibility issue in userland due to the need of incrementing the TS version.
The text was updated successfully, but these errors were encountered:
Now thanks typescript 2.2 it's not needed to declare the shape for classes created using built-in mixins
Before
```ts
import Therror from 'therror';
import { Classes } from 'therror';
interface MyCustom extends Classes.Loggable, Classes.Namespaced {}
class MyCustom extends Therror.Loggable('info', Therror.Namespaced('MyNS')) {}
```
now
```ts
import Therror from 'therror';
class MyCustom extends Therror.Loggable('info', Therror.Namespaced('MyNS')) {}
```
Breaking changes:
* Clients with typescript < 2.2 will not be able to read the new definitions
Closes#9
Now thanks typescript 2.2 it's not needed to declare the shape for classes created using built-in mixins
Before
```ts
import Therror from 'therror';
import { Classes } from 'therror';
interface MyCustom extends Classes.Loggable, Classes.Namespaced {}
class MyCustom extends Therror.Loggable('info', Therror.Namespaced('MyNS')) {}
```
now
```ts
import Therror from 'therror';
class MyCustom extends Therror.Loggable('info', Therror.Namespaced('MyNS')) {}
```
Breaking changes:
* Clients with typescript < 2.2 will not be able to read the new definitions
Closes#9
Finally, TS support for mixins has landed in microsoft/TypeScript#13743
Adapt the definitions to it, and drop all the hacks. It will probably cause a Backwards compatibility issue in userland due to the need of incrementing the TS version.
The text was updated successfully, but these errors were encountered: