KeyPathsOf<T>: KeyPathTree<T>[keyof T] & KeyPath

get an array of all possible key-paths.

Type Parameters

  • T
let data = { kill: { your: { self: [0, 1, { 0: 0, 1: { noice: "YAHAHA", 0: "you found me!" } }] } } }
let path_to_noice: KeyPath<typeof data> = ["kill", "your", "self", 2, 1, "noice"]