Improved consistency of closure compiler annotations

This commit is contained in:
amarcu5
2017-09-11 21:50:47 +01:00
parent c5a3ffdad9
commit 7cec9efdb3
3 changed files with 15 additions and 15 deletions
Binary file not shown.
+14 -14
View File
@@ -2,20 +2,20 @@
/**
* @typedef {{
* buttonClassName: (string|undefined),
* buttonDidAppear: (function(): undefined|undefined),
* buttonElementType: (string|undefined),
* buttonHoverStyle: (string|undefined),
* buttonImage: (string|undefined),
* buttonInsertBefore: (function(Element): ?Node|undefined),
* buttonParent: function(): ?Element,
* buttonScale: (number|undefined),
* buttonStyle: (string|undefined),
* captionElement: (function(): ?Element|undefined),
* videoElement: function(): ?Element,
* buttonClassName: (string|undefined),
* buttonDidAppear: (function():undefined|undefined),
* buttonElementType: (string|undefined),
* buttonHoverStyle: (string|undefined),
* buttonImage: (string|undefined),
* buttonInsertBefore: (function(Element):?Node|undefined),
* buttonParent: function():?Element,
* buttonScale: (number|undefined),
* buttonStyle: (string|undefined),
* captionElement: (function():?Element|undefined),
* videoElement: function():?Element,
* }}
*/
let PIPResource;
let PiperResource;
/** @define {boolean} - Flag used by closure compiler to remove logging */
@@ -25,7 +25,7 @@ const BUTTON_ID = 'PiPer_button';
const TRACK_ID = 'PiPer_track';
let /** ?Element */ button = null;
let /** ?PIPResource */ currentResource = null;
let /** ?PiperResource */ currentResource = null;
let /** ?TextTrack */ track = null;
let /** boolean */ showingCaptions = false;
let /** string */ lastUnprocessedCaption = '';
@@ -263,7 +263,7 @@ const bypassBackgroundTimerThrottling = function() {
request.send();
};
/** @type {!IObject<string, PIPResource>} */
/** @type {!IObject<string, PiperResource>} */
const resources = {
'amazon': {
+1 -1
View File
@@ -10,7 +10,7 @@
<key>CFBundleShortVersionString</key>
<string>0.2.3</string>
<key>CFBundleVersion</key>
<string>86</string>
<string>88</string>
<key>Developer Identifier</key>
<string>BQ6Q24MF9X</string>
<key>URL</key>