why not `typeof options.trustedDomains == "string"`