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
This seems to me a marginal improvement over Pick<C, keyof C>
declare class C {
private foo(): void
public bar(): void
}
// No need to implement private method foo !
class D implements Pick<C, keyof C> {
public bar() { }
}
Suggestion
Add the
PublicOf
type suggested in this issue's comment by @DanielRosenwasserUse Cases
Implement a
class
public properties/methods without the need to implement private/protected ones.Examples
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: