Helper function to define custom serializers for the Xtream client.
This function provides type checking for serializer configurations and
returns a properly structured serializer object that can be passed to
the Xtream constructor.
Type Parameters
T extends Partial<Serializers>
Parameters
type: string
A string identifier for the serializer type (e.g., 'standardized', 'jsonapi')
Helper function to define custom serializers for the Xtream client.
This function provides type checking for serializer configurations and returns a properly structured serializer object that can be passed to the Xtream constructor.