Skip to content

@jedmao/get v1.0

Choose a tag to compare

@jednano jednano released this 02 Mar 04:45
· 3 commits to master since this release
06146b1

Type-safe get function returns a nested value from an object.

Types will be preserved up to 10 levels deep. After that, things start coming back as any. This is due to a depth limitation of TypeScript.

This library is tiny BundlePhobia Minified + gzip, despite how big it might look if you see the TypeScript source code. Most of what you see is type information, which disappears when compiled into JavaScript, but provides rich in-editor support (see below).

screenshot