UNPKG

278 BTypeScriptView Raw
1import type { NodePath } from '@babel/traverse';
2/**
3 * Checks if the input Identifier is part of a destructuring Assignment
4 * and the name of the property key matches the input name
5 */
6export default function isDestructuringAssignment(path: NodePath, name: string): boolean;