Thomas Rayden
Thomas Rayden
I just found this package which I am going to use in my project as an alternative. https://github.com/j/type-events I particularly like how events are dispatched as class instances so you...
I ended up doing a custom implementation with [eventemitter2](https://github.com/EventEmitter2/EventEmitter2) because I needed wildcard support. I thought I'd share in-case it helps somebody. You could probably improve it with decorators, like...
I'm confused now, I tried to replicate it in [Typescript Playground](https://www.typescriptlang.org/play) and it works fine with no type errors... ```typescript // Taken from compose-middleware type Next = (err?: Error |...
Here is the scenario in which I am encountering this. ```typescript export function getTransactionDocumentSchema(schema) { return { ...ResourceDocumentSchema, ...TransactionSchema, snapshot: schema.tailor("create"), changes: schema.tailor("update") }; } ``` When I then use...
Just had this issue. Downgrading to TypeScript 4.2.4 fixed it.