get the leaf-key of a dot-path (ie: end point).
leaf-key
dot-path
let leaf_key: DotPathLeaf<"kill.your.self"> = "self" // correct assignmentlet incorrect_leaf_key: DotPathLeaf<"kill.your.self"> = "your" // typescript error Copy
let leaf_key: DotPathLeaf<"kill.your.self"> = "self" // correct assignmentlet incorrect_leaf_key: DotPathLeaf<"kill.your.self"> = "your" // typescript error
get the
leaf-key
of adot-path
(ie: end point).