KeyPath: [string | number, ...(string | number)[]]

a key-path is an array of one or more string keys (number keys work too).

Example

const data = { kill: { your: { self: [0, 1, { 0: 0, 1: { noice: "YAHAHA", 0: "you found me!" } }] } } }
const possible_keypath: KeyPath = ["kill", "your", "self", 2, "1"]

Generated using TypeDoc