the typing for the Options interface does not include the encodeType option, but it is present in the code, for example here
Options
encodeType