Throw Type Error for invalid "kind" value