@@ -26,8 +26,8 @@ type HookStore = {
2626 before : { [ method : string ] : HookFunction [ ] }
2727 after : { [ method : string ] : HookFunction [ ] }
2828 error : { [ method : string ] : HookFunction [ ] }
29- collected : { [ method : string ] : AroundHookFunction [ ] } ,
30- collectedAll : { before ?: AroundHookFunction [ ] , after ?: AroundHookFunction [ ] }
29+ collected : { [ method : string ] : AroundHookFunction [ ] }
30+ collectedAll : { before ?: AroundHookFunction [ ] ; after ?: AroundHookFunction [ ] }
3131}
3232
3333type HookEnabled = { __hooks : HookStore }
@@ -63,7 +63,7 @@ export function collectHooks(target: HookEnabled, method: string) {
6363 ...( around [ method ] || [ ] ) ,
6464 ...( collectedAll . before || [ ] ) ,
6565 ...( collected [ method ] || [ ] ) ,
66- ...( collectedAll . after || [ ] ) ,
66+ ...( collectedAll . after || [ ] )
6767 ] as AroundHookFunction [ ]
6868}
6969
@@ -75,7 +75,7 @@ export function enableHooks(object: any) {
7575 after : { } ,
7676 error : { } ,
7777 collected : { } ,
78- collectedAll : { } ,
78+ collectedAll : { }
7979 }
8080
8181 Object . defineProperty ( object , '__hooks' , {
@@ -115,7 +115,7 @@ export function enableHooks(object: any) {
115115
116116 if ( store . after [ method ] ) {
117117 const afterAll = collect ( {
118- after : store . after [ method ] || [ ] ,
118+ after : store . after [ method ] || [ ]
119119 } )
120120 store . collectedAll . after = [ afterAll ]
121121 }
0 commit comments