Merge pull request #465 from Hexastack/455-issue-event-emitter-custom-custom-hooks-are-missing-select-all-selector
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker NLU Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run

fix(api): add select all selector to the custom events
This commit is contained in:
Med Marrouchi 2024-12-19 07:01:53 +01:00 committed by GitHub
commit 5030bc1f79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -314,7 +314,8 @@ declare module '@nestjs/event-emitter' {
: false;
type TCustomEvents<G extends keyof IHookEntityOperationMap> =
keyof IHookEntityOperationMap[G]['operations'];
| '*'
| keyof IHookEntityOperationMap[G]['operations'];
type TNormalizedOrCustomized<G> = G extends IHookEntities
? TNormalizedEvents | TCustomEvents<G>