type InferCollectionType<T> = T extends CollectionImpl<infer TOutput, infer TKey, any, any, any> ? WithVirtualProps<TOutput, TKey> : T extends CollectionOptionsIdentity<infer TOutput, infer TKey, any, any, any> ? WithVirtualProps<TOutput, TKey> : never;Defined in: packages/db/src/query/builder/types.ts:105
InferCollectionType - Extracts the TypeScript type from a CollectionImpl
This helper ensures we get the same type that was used when creating the collection itself. This can be an explicit type passed by the user or the schema output type.
T