isDestructuringAssignment.d.ts 278 B

123456
  1. import 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. */
  6. export default function isDestructuringAssignment(path: NodePath, name: string): boolean;