You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -264,7 +264,7 @@ You can also replace the built-in structure loader with one that suits your need
264
264
To do that, you need to include a loading method in the options object passed to the domain constructor.
265
265
266
266
// 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 )
268
268
function myCustomLoader(options) {
269
269
return {
270
270
myContext: new Context({ name: 'myContext' }).addAggregate(new Aggregate({ name : 'agg' }, function(){}).addCommand({ name: 'cmd' }, function(){}))
0 commit comments