import { NumObj } from '../util/NumObj'; import { Length } from './Length'; import { NumberToString } from '../cast/NumberToString'; /** * Append a value to the end of an object type with numerical keys */ export type AppendNumObj< R extends NumObj, T, Len extends number = Length > = R & { [P in NumberToString[Len]]: T };