Skip to content

Commit

Permalink
docs: fix incorrect formatting in browser docs. (#24515)
Browse files Browse the repository at this point in the history
Address incorrect typing for isEnabled. The root cause of this was due
to missing backticks which caused the docs parser to think that the
return type of the `isEnabled` function was null, where it was supposed
to be a boolean type.

The side effect of this was that the generated typescript typings were
incorrect for this function.

Fixes #24409

Co-authored-by: Sam Saccone <samccone@gmail.com>
  • Loading branch information
trop[bot] and samccone committed Jul 13, 2020
1 parent 49e6394 commit d67ff0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/browser-window.md
Expand Up @@ -1061,7 +1061,7 @@ Disable or enable the window.

#### `win.isEnabled()`

Returns Boolean - whether the window is enabled.
Returns `Boolean` - whether the window is enabled.

#### `win.setSize(width, height[, animate])`

Expand Down

0 comments on commit d67ff0f

Please sign in to comment.