src/IteratorPipeline/Traits/TypeHandlingTrait.php
public function typeCheck($type, ?\Throwable $throwable = null)
    {
        return $this->then(i\iterable_type_check, $type, $throwable);
    }
public function typeCheck($type, ?\Throwable $throwable = null)
    {
        return $this->then(i\iterable_type_check, $type, $throwable);
    }
Validate that a value has a specific type.

@param string|string[] $type
@param \Throwable|null $throwable
@return static