mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
Silence upcoming error in TS 3.7
The error tries make sure you don't use a truthy check on a function instead of calling. But the code in the tests is in fact checking for the presence of the function.
This commit is contained in:
@@ -813,9 +813,9 @@ chrome.enterprise.deviceAttributes.getDeviceAnnotatedLocation((loc) => loc.charA
|
||||
|
||||
// ENTERPRISE - PLATFORM KEYS
|
||||
|
||||
if (chrome.enterprise.platformKeys.getTokens) {
|
||||
if (chrome.enterprise.platformKeys.importCertificate) {
|
||||
if (chrome.enterprise.platformKeys.removeCertificate) {
|
||||
if (chrome.enterprise.platformKeys.getTokens as any) {
|
||||
if (chrome.enterprise.platformKeys.importCertificate as any) {
|
||||
if (chrome.enterprise.platformKeys.removeCertificate as any) {
|
||||
console.log('API Present');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ const optsWithEnableFunc: CspHtmlWebpackPlugin.AdditionalOptions = {
|
||||
// $ExpectType string
|
||||
htmlPluginData.html;
|
||||
|
||||
if (htmlPluginData.plugin.apply) {
|
||||
if (htmlPluginData.plugin.apply as any) {
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user