Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
fix(core): adjust getChild type definition to return possible undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
klemenoslaj committed Oct 24, 2020
1 parent 2272cdd commit 1760f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/core/src/lib/action-group/action-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ const child = group.getChild(0);
* @method getChild
* @param index Index of child action
*/
getChild(index: number): AnyAction {
getChild(index: number): AnyAction | undefined {
const children = this.getChildren();

if (index >= 0) {
Expand Down

0 comments on commit 1760f87

Please sign in to comment.