Skip to content

Commit cb26adf

Browse files
author
Franck Freiburger
committed
wip(code): pathResolve, createCJSModule and getResource are optional for loadModule() options but mandatory for loadModuleInternal()
1 parent 7732000 commit cb26adf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,20 +375,22 @@ export type Options = {
375375

376376
/**
377377
* creates a CommonJS module from JS source string.
378+
* *(optional)*
378379
*/
379-
createCJSModule?(refPath : AbstractPath, source : string, options : Options) : Module,
380+
createCJSModule(refPath : AbstractPath, source : string, options : Options) : Module,
380381

381382

382383

383384
/**
384385
* Abstact path handling
385-
*
386+
* *(optional)*
386387
*/
387388
pathResolve : PathResolve,
388389

389390

390391
/**
391392
* Abstact resource handling
393+
* *(optional)*
392394
*
393395
*/
394396
getResource(pathCx : PathContext, options : Options) : Resource,

0 commit comments

Comments
 (0)