type

Deprecated

Use elemType instead.

Replace with

elemType.value