(binding: string)
| 555 | if (local) { |
| 556 | const nodes = context.getNodesInFile(file); |
| 557 | const declaredAs = (binding: string): Node | undefined => { |
| 558 | const named = nodes.filter((n) => n.name === binding && EXPORTED_COMPONENT_KINDS.has(n.kind)); |
| 559 | return named.find((n) => n.qualifiedName === binding) ?? named[0]; |
| 560 | }; |
| 561 | const exported = declaredAs(local); |
| 562 | // A constant that holds another binding is that binding: outline's |
| 563 | // `Avatar/index.ts` is `const Avatar = AvatarWithHoverCard; export { Avatar }`. |
no test coverage detected