type doc