updated jsdoc type for setCollection method.