MCPcopy
hub / github.com/TanStack/query / findImportSpecifiers

Function findImportSpecifiers

packages/query-codemods/src/utils/index.cjs:14–21  ·  view source on GitHub ↗
(packageName)

Source from the content-addressed store, hash-verified

12 }
13
14 const findImportSpecifiers = (packageName) =>
15 root
16 .find(jscodeshift.ImportDeclaration, {
17 source: {
18 value: packageName,
19 },
20 })
21 .find(jscodeshift.ImportSpecifier, {})
22
23 const locateImports = (
24 identifiers,

Callers 1

locateImportsFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…