get the parent-key dot-path of a dot-path. but if there's no parent key, then the key itself is returned
parent-key
dot-path
let dotpath0: DotPathParent<"kill.your.self.once"> = "kill.your.self"let dotpath1: DotPathParent<typeof dotpath0> = "kill.your"let dotpath2: DotPathParent<typeof dotpath1> = "kill"let dotpath3: DotPathParent<typeof dotpath2> = "kill" Copy
let dotpath0: DotPathParent<"kill.your.self.once"> = "kill.your.self"let dotpath1: DotPathParent<typeof dotpath0> = "kill.your"let dotpath2: DotPathParent<typeof dotpath1> = "kill"let dotpath3: DotPathParent<typeof dotpath2> = "kill"
get the
parent-key
dot-path
of adot-path
.but if there's no parent key, then the key itself is returned