Skip to content

Commit e452ba4

Browse files
committed
update readme
1 parent b8daa11 commit e452ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ You can also replace the built-in structure loader with one that suits your need
264264
To do that, you need to include a loading method in the options object passed to the domain constructor.
265265

266266
// options will contain a the domainPath, validatorExtension, and useLoaderExtensions options passed to the constructor
267-
// as well as a definition object containing all the constructors of the domain components ( Context, Aggregate etc. )
267+
// as well as a definition object containing all the constructors of the domain components ( Context, Aggregate etc. ) and error constructors ( inside errors )
268268
function myCustomLoader(options) {
269269
return {
270270
myContext: new Context({ name: 'myContext' }).addAggregate(new Aggregate({ name : 'agg' }, function(){}).addCommand({ name: 'cmd' }, function(){}))

0 commit comments

Comments
 (0)