Skip to content
This repository has been archived by the owner on Aug 5, 2023. It is now read-only.

Latest commit

 

History

History
33 lines (23 loc) · 714 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 714 Bytes

Key Narrower

This is a set of simple utility functions designed to help make accessing objects in Typescript easier and safer.

Installing

Install via your favorite package manager:

yarn add key-narrower

Usage

All functions have built-in JSDoc documentation. As this is primarily useful in Typescript projects, try using your editor's type sensing functionality to see how the functions narrow the types of your variables.

Contributing

Pull requests are welcome! To get started with this project, run:

yarn install && yarn run husky install

if anyone knows the Yarn Berry equivalent of yarn prepare, please let me know ;)