UNPKG

@typescript-eslint/eslint-plugin

Version:
8 lines (7 loc) 312 B
import type { TSESTree } from '@typescript-eslint/utils'; /** * Yields all statement nodes in a block, including nested blocks. * * You can use it to find all return statements in a function body. */ export declare function walkStatements(body: readonly TSESTree.Statement[]): Generator<TSESTree.Statement>;