eslint-plugin-exception-handling
Version:
💣 Lints unhandled functions that might throw errors. For JavaScript/TypeScript eslint.
4 lines (3 loc) • 325 B
TypeScript
import { TSESTree } from "@typescript-eslint/types";
import { InferGuardType } from "./infer-guard-type.js";
export declare function findInParent<T extends TSESTree.Node, F extends (x: TSESTree.Node) => x is T>(node: TSESTree.Node, predicate: F, filter?: (node: InferGuardType<F>) => boolean): InferGuardType<F> | undefined;