Create type specs for records generated