introduce shorthand `type` attr tpe