fix: parse type at parser