What's the difference between type and typeAttribute?