News for hackers. Stuff that matters.
Re:How to Use Go Interfaces by seanmcdirmid on Monday March 19, 2018 @10:49PM (#16625630)
TypeScript, having a purely structural type system, means any class has an interface. Unfortunately, if the class has any private or protected members, its interface becomes unimplementable.
Re:How to Use Go Interfaces by dahauns on Tuesday March 20, 2018 @06:58AM (#16627414)
Yeah, tricky one, that.

At least you have the workaround

    type PublicPart<T> = {[K in keyof T]: T[K]}; //keyof only sees public properties