Setting the type for an entity in a datapack

Tried making a datapack and got stuck because for some reason every other datapack i look at works except mine and it looks like its because i keep getting this message when I hover over type in vscode "Property type is not allowed" plz help ToT maybe im just confused
Continue to help post