Unpartial an type.
It is very common to define a config type and
Partial<> it in a function argument.
When we received the arguement, we want to merge it with our default config before using it:
Code completion is avaiable as you type:
It also supports merging two default configs. This is useful when you are extending interface from another package/class.
There are 3 more functions available in this library:
required(): an improved version of
unpartial()with better type management.
requiredDeep(): an improved version of
unpartialRecursively()with better type management.
requiredDeep() function is also exposed in
Feel free to check it out.
# after fork and clonenpm install# begin making changesgit checkout -b <branch>npm run watch# after making change(s)git commit -m "<commit message>"git push# create PR