type alias Object.Pathsimport { type Object } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts"; const { Paths } = Object; Get all the possible paths of O (⚠️ this won't work with circular-refs) ExamplesExample 1 Type ParametersOoptionalP extends List = []definition: _Paths<O, P> extends infer X ? Cast<X, List<Key>> : never