type MutableMany = T | T[]; type ImmutableMany = T | readonly T[]; /** * Represents a value that can be either a single value or an array of values. */ type Many = { immutable: ImmutableMany; mutable: MutableMany; }[Type]; export { Many as M };