Skip to content

Commit 5914926

Browse files
committed
add return types
1 parent a67a223 commit 5914926

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

src/v8.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ export default class CSInterface {
471471
/**
472472
* Retrieves information about the host environment in which the extension is currently running.
473473
*
474-
* @return A HostEnvironment object.
474+
* @return {HostEnvironment} A HostEnvironment object.
475475
*/
476476
getHostEnvironment(): HostEnvironment {
477477
return JSON.parse(window.__adobe_cep__.getHostEnvironment());
@@ -489,7 +489,7 @@ export default class CSInterface {
489489
*
490490
* @param pathType The path-type constant defined in SystemPath ,
491491
*
492-
* @return The platform-specific system path string.
492+
* @return {string} The platform-specific system path string.
493493
*/
494494
getSystemPath(pathType: SystemPath): string {
495495

@@ -525,7 +525,7 @@ export default class CSInterface {
525525
* Retrieves the unique identifier of the application.
526526
* in which the extension is currently running.
527527
*
528-
* @return The unique ID string.
528+
* @return {string} The unique ID string.
529529
*/
530530
getApplicationID(): string {
531531
return this.hostEnvironment.appId;
@@ -535,7 +535,7 @@ export default class CSInterface {
535535
* Retrieves host capability information for the application
536536
* in which the extension is currently running.
537537
*
538-
* @return A HostCapabilities object.
538+
* @return {HostCapabilities} A HostCapabilities object.
539539
*/
540540
getHostCapabilities(): HostCapabilities {
541541
return JSON.parse(window.__adobe_cep__.getHostCapabilities());
@@ -608,7 +608,7 @@ export default class CSInterface {
608608
* @param extensionIds Optional, an array of unique identifiers for extensions of interest.
609609
* If omitted, retrieves data for all extensions.
610610
*
611-
* @return Zero or more Extension objects.
611+
* @return {Extension[]} Zero or more Extension objects.
612612
*/
613613
getExtensions(extensionIds?: string[]): Extension[] {
614614
const extensionIdsStr = JSON.stringify(extensionIds);
@@ -623,7 +623,7 @@ export default class CSInterface {
623623
*
624624
* Retrieves network-related preferences.
625625
*
626-
* @return A JavaScript object containing network preferences.
626+
* @return {Object} A JavaScript object containing network preferences.
627627
*/
628628
getNetworkPreferences(): object {
629629
return JSON.parse(window.__adobe_cep__.getNetworkPreferences());
@@ -644,7 +644,7 @@ export default class CSInterface {
644644
*
645645
* <code><input type="submit" value="" data-locale="key"/></code>
646646
*
647-
* @return An object containing the resource bundle information.
647+
* @return {Object} An object containing the resource bundle information.
648648
*/
649649
initResourceBundle(): object {
650650
const resourceBundle = JSON.parse(window.__adobe_cep__.initResourceBundle());
@@ -675,7 +675,7 @@ export default class CSInterface {
675675
/**
676676
* Writes installation information to a file.
677677
*
678-
* @return The file path.
678+
* @return {string} The file path.
679679
*/
680680
dumpInstallationInfo(): string {
681681
return window.__adobe_cep__.dumpInstallationInfo();
@@ -685,14 +685,14 @@ export default class CSInterface {
685685
* Retrieves version information for the current Operating System,
686686
* See http://www.useragentstring.com/pages/Chrome/ for Chrome navigator.userAgent values.
687687
*
688-
* @return A string containing the OS version, or "unknown Operation System".
688+
* @return {string} A string containing the OS version, or "unknown Operation System".
689689
* If user customizes the User Agent by setting CEF command parameter "--user-agent", only
690690
* "Mac OS X" or "Windows" will be returned.
691691
*/
692692
getOSInformation(): string {
693693
const userAgent = navigator.userAgent;
694694

695-
if ((navigator.platform == "Win32") || (navigator.platform == "Windows")) {
695+
if ((navigator.platform === "Win32") || (navigator.platform === "Windows")) {
696696
let winVersion = "Windows";
697697
let winBit = "";
698698
if (userAgent.indexOf("Windows") > -1) {
@@ -722,7 +722,7 @@ export default class CSInterface {
722722
}
723723

724724
return winVersion + winBit;
725-
} else if ((navigator.platform == "MacIntel") || (navigator.platform == "Macintosh")) {
725+
} else if ((navigator.platform === "MacIntel") || (navigator.platform === "Macintosh")) {
726726
let result = "Mac OS X";
727727

728728
if (userAgent.indexOf("Mac OS X") > -1) {
@@ -748,7 +748,7 @@ export default class CSInterface {
748748
* "file:///C:/log.txt"
749749
* "mailto:test@adobe.com"
750750
*
751-
* @return One of these error codes:\n
751+
* @return {number} One of these error codes:\n
752752
* <ul>
753753
* <li>NO_ERROR - 0</li>
754754
* <li>ERR_UNKNOWN - 1</li>
@@ -766,7 +766,7 @@ export default class CSInterface {
766766
*
767767
* @since 4.2.0
768768
*
769-
* @return extension ID.
769+
* @return {string} extension ID.
770770
*/
771771
getExtensionID(): string {
772772
return window.__adobe_cep__.getExtensionId();
@@ -779,7 +779,7 @@ export default class CSInterface {
779779
*
780780
* @since 4.2.0
781781
*
782-
* @return One of the following float number.
782+
* @return {number} One of the following float number.
783783
* <ul>
784784
* <li> -1.0 when error occurs </li>
785785
* <li> 1.0 means normal screen </li>
@@ -852,7 +852,7 @@ export default class CSInterface {
852852
* @param enabled True to enable the item, false to disable it (gray it out).
853853
* @param checked True to select the item, false to deselect it.
854854
*
855-
* @return false when the host application does not support this functionality (HostCapabilities.EXTENDED_PANEL_MENU is false).
855+
* @return {boolean} false when the host application does not support this functionality (HostCapabilities.EXTENDED_PANEL_MENU is false).
856856
* Fails silently if menu label is invalid.
857857
*
858858
* @see HostCapabilities.EXTENDED_PANEL_MENU
@@ -995,7 +995,7 @@ export default class CSInterface {
995995
*
996996
* @since 6.0.0
997997
*
998-
* @return true if the extension window is visible; false if the extension window is hidden.
998+
* @return {boolean} true if the extension window is visible; false if the extension window is hidden.
999999
*/
10001000
isWindowVisible(): boolean {
10011001
return window.__adobe_cep__.invokeSync("isWindowVisible", "");
@@ -1104,7 +1104,7 @@ export default class CSInterface {
11041104
*
11051105
* @since 6.1.0
11061106
*
1107-
* @return The window title.
1107+
* @return {string} The window title.
11081108
*/
11091109
getWindowTitle(): string {
11101110
return window.__adobe_cep__.invokeSync("getWindowTitle", "");

0 commit comments

Comments
 (0)