Closed
Description
Code
Based on chrome-app on Definitely Typed:
var chrome = {
platformKeys: {
subtleCrypto() {
return {
sign() {},
exportKey() { return true }
}
}
}
}
// ok
if (chrome.platformKeys.subtleCrypto().exportKey) {
chrome.platformKeys.subtleCrypto().exportKey
}
Expected behavior:
No error
Actual behavior:
Error: "Did you mean to call 'exportKey'?"