Replies: 1 comment
-
On stackoverflow.com I get "almost" the complete answer: https://stackoverflow.com/a/71406876/18416404 Only converting this solution to a one-line type, throws an errors: import { Object, String, List } from "ts-toolbelt"
export type DottedObjectPaths<T> = String.Join<List.Required<Object.Paths<T>>, "."> Error:
Thank you for help |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi together
How I can generate all paths of an object as String literal's with dot separator with ts-toolbelt's
Object.Paths
andString.Join
as Union type like this?On stackoverflow.com I found this solution (https://stackoverflow.com/a/58436959) without ts-toolbelt:
Question: How I can simplify this Code with ts-toolbelt?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions