Type alias ConvertPaths<Root>

ConvertPaths<Root>: {
    [Key in keyof Root as Key extends string
        ? Key
        : never]: Key extends string
        ? SubPAPI<Root[Key]>
        : never
}

Utility type that converts path portions of an PAPIBuilder into usable subdefinitions

Type Parameters