CollectionsDatabasetype

{
	[E in C[number] as E extends Collection<infer N, Identifier, Data> ? N : never]: E extends Collection<string, Identifier, infer T>
		? T
		: never;
}
Type
E
Collection
Declarative definition of a database collection/table.
Identifier
Allowed types for the "id" property (identifier) for an item.
Data
Data object — a plain object with string keys and unknown values.
N
T

Convert a Collections array type to a database-style object mapping in { name: data } format.