docs: add error propagation note to createImportResolver JSDoc

Agent-Logs-Url: https://github.com/abhigyanpatwari/GitNexus/sessions/c3aec32d-2155-4808-88df-9cd6b2384174

Co-authored-by: magyargergo <11230420+magyargergo@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-16 14:10:52 +00:00 • committed by GitHub
parent b3f62b94ad
commit c0ae2f9283
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,11 @@ import type { ImportResolverFn, ImportResolutionConfig } from './types.js';
*
* Chains strategies in declaration order — first non-null result wins.
* Returns null only if every strategy returns null.
*
* Error behaviour: if a strategy throws, the error propagates immediately
* and remaining strategies are not tried. Strategies are expected to be
* pure data transforms that never throw; any unexpected exception indicates
* a bug in the strategy implementation.
*/
export function createImportResolver(config: ImportResolutionConfig): ImportResolverFn {
const { strategies } = config;