Skip to content

Workaround for Optional Chaining in TypeScript #30365

@nodkz

Description

@nodkz

@RIP21 create the amazing workaround for OptionalChaining

https://github.com/RIP21/ts-get

Autosuggestion for input 😱

Screen Shot 2019-03-13 at 8 59 35 PM

Static analysis for non-existed keys 🚀

Screen Shot 2019-03-13 at 8 59 59 PM

Pros: a quite broken result type (without null & undefined) 😭

Screen Shot 2019-03-13 at 8 15 07 PM

Anyway it MUCH better than lodash.get which does not check input keys and always returns any

https://twitter.com/RIP212/status/1105841844070633474

Metadata

Metadata

Assignees

No one assigned

    Labels

    UnactionableThere isn't something we can do with this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions