I'm a fan of Open Source and have a growing interest in serverless and edge computing. I'm not a big fan of spiders, but they're doing good work eating bugs. I also stream on Twitch.
My win this week is more of a win/shoutout. Thank you open source and the people that work in it. I posted a question on Twitter about TypeScript and Daniel Rosenwasser from the TypeScript team chimed in. Problem solved. Much appreciated Daniel!
Nick Taylor
@nickytonline
You can augment interfaces in modules in @typescriptlang via declaration merging, but can you do it for a `type`? e.g. type EventType = keyof GlobalEventHandlersEventMap augmented to type EventType = keyof GlobalEventHandlersEventMap | 'customEvent';
02:18 AM - 06 Apr 2019
00
Nick Taylor
@nickytonline
From what I can tell, it's not possible. I can rework the types so that an interface can be overridden, but it'd be nice to do it directly for EventType. #TypeScript
02:27 AM - 06 Apr 2019
01
Daniel Rosenwasser
@drosenwasser
@nickytonline You can augment GlobalEventHandlerMap and add in an entry for customEvent.
04:07 AM - 06 Apr 2019
01
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
My win this week is more of a win/shoutout. Thank you open source and the people that work in it. I posted a question on Twitter about TypeScript and Daniel Rosenwasser from the TypeScript team chimed in. Problem solved. Much appreciated Daniel!