Skip to content

NeatCapitalOrg/typed-path

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.


Solution

Errors

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

Suggestions

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

License

Copyright (c) 2017 Oleksandr Beshchuk <bs.alex.mail@gmail.com>
Licensed under the Apache License.

About

Type safe object field string paths for typescript.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%