Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>Object.Paths

👷 TypeScript's largest type utility library, now on Deno
Latest
type alias Object.Paths
import { 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)

Examples

Example 1

Type Parameters

O
optional
P extends List = []
definition: _Paths<O, P> extends infer X ? Cast<X, List<Key>> : never