public function get(string $typeName): Type
    {
        if (! isset($this->types[$typeName])) {
            throw new InvariantViolation("No type {$typeName} was registered.");
        }

        return $this->types[$typeName];
    }