mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-09 03:17:54 +00:00
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:
parent
b3f62b94ad
commit
c0ae2f9283
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue