( subBlock: SubBlockConfig, context: SelectorContext )
| 8 | } |
| 9 | |
| 10 | export function resolveSelectorForSubBlock( |
| 11 | subBlock: SubBlockConfig, |
| 12 | context: SelectorContext |
| 13 | ): SelectorResolution | null { |
| 14 | if (!subBlock.selectorKey) return null |
| 15 | return { |
| 16 | key: subBlock.selectorKey, |
| 17 | context: { |
| 18 | ...context, |
| 19 | mimeType: subBlock.mimeType ?? context.mimeType, |
| 20 | }, |
| 21 | allowSearch: subBlock.selectorAllowSearch ?? true, |
| 22 | } |
| 23 | } |
no outgoing calls
no test coverage detected