News for hackers. Stuff that matters.
Re:A 'CSS reset' for TypeScript, improving types for common ... by wizofaus on Friday March 03, 2023 @01:59PM (#35013614)
Could you use a helper like

    function getProperty<T, K extends keyof T>(o: T, propertyName: K): T[K] {
        return o[propertyName];
    }

?

There are no comments on this comment yet.