* `UploadApi.uploadARCapture()` where `UploadApi` is a NAMESPACE OBJECT — the * default-export façade most React Native API layers are written as: * * import { uploadARCapture } from './frames' * const UploadApi = { uploadARCapture, createFolder } * export default UploadApi * * The memb
( container: Node, member: string, ref: UnresolvedRef, context: ResolutionContext )
| 4104 | * through its own imports. Calls accept callable targets only. |
| 4105 | */ |
| 4106 | function resolveObjectLiteralAlias( |
| 4107 | container: Node, |
| 4108 | member: string, |
| 4109 | ref: UnresolvedRef, |
| 4110 | context: ResolutionContext |
| 4111 | ): ResolvedRef | null { |
| 4112 | if (container.kind !== 'constant' && container.kind !== 'variable') return null; |
| 4113 | if (!JS_FAMILY_FILE.test(container.filePath)) return null; |
| 4114 | const resolved = resolveObjectLiteralBinding(container, member, ref, context); |
| 4115 | return resolved ? { ...resolved, confidence: 0.9, resolvedBy: 'import' } : null; |
| 4116 | } |
| 4117 | |
| 4118 | function resolveModuleImportToFile( |
| 4119 | ref: UnresolvedRef, |