Fix comment addOnBeforeRun to match changed API

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
This commit is contained in:
Juho Heikka committed 2021-10-07 14:36:46 +03:00
1 parent f7ea0b51db
commit 71e844886f
1 file changed
+5 -3
+5 -3
View File
@@ -51,9 +51,11 @@ export class CatalogEntityRegistry {
} }
/** /**
* Add a onBeforeRun hook to a catalog entity. If `onBeforeRun` was previously added then it will not be added again * Add a onBeforeRun hook to a catalog entities. If `onBeforeRun` was previously
* @param catalogEntityUid The uid of the catalog entity * added then it will not be added again.
* @param onBeforeRun The function that should return a boolean if the onRun of catalog entity should be triggered. * @param onBeforeRun The function will receive the catalog entity as a parameter.
* Hook function should return a boolean that determines if the running sequence
* should continue to onRun.
* @returns A function to remove that hook * @returns A function to remove that hook
*/ */
addOnBeforeRun(onBeforeRun: CatalogEntityOnBeforeRun): Disposer { addOnBeforeRun(onBeforeRun: CatalogEntityOnBeforeRun): Disposer {