Skip to content

Commit f1a692a

Browse files
committed
Add return value types and update descriptions
1 parent bb906e2 commit f1a692a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/components/Toolbar.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ export class Toolbar extends React.Component<IToolbarProps, IToolbarState> {
153153
/**
154154
* Renders the component.
155155
*
156-
* @returns fragment
156+
* @returns React element
157157
*/
158-
render() {
158+
render(): React.ReactElement {
159159
return (
160160
<div className={toolbarClass}>
161161
{this._renderTopNav()}
@@ -168,9 +168,9 @@ export class Toolbar extends React.Component<IToolbarProps, IToolbarState> {
168168
/**
169169
* Renders the top navigation.
170170
*
171-
* @returns fragment
171+
* @returns React element
172172
*/
173-
private _renderTopNav() {
173+
private _renderTopNav(): React.ReactElement {
174174
return (
175175
<div className={toolbarNavClass}>
176176
<button
@@ -199,9 +199,9 @@ export class Toolbar extends React.Component<IToolbarProps, IToolbarState> {
199199
/**
200200
* Renders a repository menu.
201201
*
202-
* @returns fragment
202+
* @returns React element
203203
*/
204-
private _renderRepoMenu() {
204+
private _renderRepoMenu(): React.ReactElement {
205205
return (
206206
<div className={toolbarMenuWrapperClass}>
207207
<button
@@ -238,9 +238,9 @@ export class Toolbar extends React.Component<IToolbarProps, IToolbarState> {
238238
/**
239239
* Renders a branch menu.
240240
*
241-
* @returns fragment
241+
* @returns React element
242242
*/
243-
private _renderBranchMenu() {
243+
private _renderBranchMenu(): React.ReactElement | null {
244244
if (!this.state.repository) {
245245
return null;
246246
}

0 commit comments

Comments
 (0)