2.0.2 • Published 5 years ago

@neatcapital/typed-path v2.0.2

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
5 years ago

Typed Path

This is a temporary fork of https://github.com/bsalex/typed-path with fixes for newer typescript versions and other misc improvements. Hopefully this will be merged into bsalex's repo soon.


Problem

Types are lost when string paths are used in typescript.
I.e. _.get, _.map, _.set, R.pluck from libraries like lodash, ramda.
It makes those methods dangerous in case of refactoring, the same as JavaScript.

npm.io


Solution

Errors

With typed-path typescript can check paths and warns you about errors.

npm.io

Suggestions

Also typed-path allows typescript to suggest field names for you.

npm.io

License

Copyright (c) 2017 Oleksandr Beshchuk [bs.alex.mail@gmail.com](mailto:bs.alex.mail@gmail.com)
Licensed under the Apache License.