Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perhaps typedef RequestInfo should include TrustedURL #3429

Closed
Andrew-Cottrell opened this issue Jul 12, 2019 · 1 comment
Closed

Perhaps typedef RequestInfo should include TrustedURL #3429

Andrew-Cottrell opened this issue Jul 12, 2019 · 1 comment

Comments

@Andrew-Cottrell
Copy link

Perhaps RequestInfo should be @typedef {!Request|string|!TrustedURL}

/**
 * @typedef {!Request|string}
 * @see https://fetch.spec.whatwg.org/#requestinfo
 */
var RequestInfo;

https://github.com/google/closure-compiler/blob/v20190709/externs/browser/fetchapi.js#L145

@Andrew-Cottrell
Copy link
Author

On further investigation, the above suggestion is not currently applicable.

for now fetch() is not guarded

28 May 2019, w3c/trusted-types#176 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant