File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1
1
export const ApplicationEvents = {
2
2
BOOTSTRAP_END : "bootstrapEnd" ,
3
+ VALIDATE_PROJECT : "validateProject" ,
3
4
} ;
Original file line number Diff line number Diff line change @@ -107,6 +107,12 @@ export class Application extends ChildableComponent<
107
107
*/
108
108
static readonly EVENT_BOOTSTRAP_END = ApplicationEvents . BOOTSTRAP_END ;
109
109
110
+ /**
111
+ * Emitted when validation is being run.
112
+ * The listener will be given an instance of {@link ProjectReflection}.
113
+ */
114
+ static readonly EVENT_VALIDATE_PROJECT = ApplicationEvents . VALIDATE_PROJECT ;
115
+
110
116
/**
111
117
* Create a new TypeDoc application instance.
112
118
*/
@@ -431,6 +437,8 @@ export class Application extends ChildableComponent<
431
437
validateLinks ( project , this . logger ) ;
432
438
}
433
439
440
+ this . trigger ( Application . EVENT_VALIDATE_PROJECT , project ) ;
441
+
434
442
this . logger . verbose ( `Validation took ${ Date . now ( ) - start } ms` ) ;
435
443
}
436
444
You can’t perform that action at this time.
0 commit comments