@typescript-eslint/eslint-plugin
Version:
TypeScript plugin for ESLint
8 lines (7 loc) • 312 B
TypeScript
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>;