Skip to content

Commit 96f9839

Browse files
committed
fix: update parent type in reportImplicitReturnSideEffect function
1 parent e9738e4 commit 96f9839

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/rules/no-wait-for-side-effects.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,11 @@ export default createTestingLibraryRule<Options, MessageIds>({
218218
| TSESTree.CallExpression
219219
| TSESTree.SequenceExpression
220220
) & {
221-
parent: TSESTree.ArrowFunctionExpression & {
221+
parent: (
222+
| TSESTree.ArrowFunctionExpression
223+
| TSESTree.FunctionDeclaration
224+
| TSESTree.FunctionExpression
225+
) & {
222226
parent: TSESTree.CallExpression;
223227
};
224228
}

0 commit comments

Comments
 (0)