public function setTypeDefinition($type, $mime_types, $extensions)
    {
        $this->config['aggregate_types'][$type] = [
            'mime_types' => (array) $mime_types,
            'extensions' => (array) $extensions,
        ];

        return $this;
    }