Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unify partial deep type & improve defaults function examples #100

Open
5 tasks
mesqueeb opened this issue Nov 14, 2022 · 0 comments
Open
5 tasks

unify partial deep type & improve defaults function examples #100

mesqueeb opened this issue Nov 14, 2022 · 0 comments

Comments

@mesqueeb
Copy link
Member

  • unify PartialDeep to use
export type PartialDeep<O> = O extends Record<string | number | symbol, unknown>
  ? { [K in keyof O]?: PartialDeep<O[K]> }
  : O
  • export this type as well
  • make sure that merge-anything works correctly with the PartialDeep type I end up using

[DOCS]

  • rewrite the documentation for the defaults... functions to use PartialDeep
    • suggest to use merge() function for cases with nested objects
  • explain how to be re-use modules with config in other modules with other where filters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant