Like this:
/// https://firebase.google.com/docs/reference/js/firestore_.querydocumentsnapshot.md#querydocumentsnapshot_class
type query<'kind, 'documentdata, 'metadata>
type collectionReference<'documentdata, 'metadata> = query<[#collectionReference], 'documentdata, 'metadata >