Update code/lib/preview-api/src/modules/addons/hooks.ts

This commit is contained in:
Norbert de Langen 2023-01-13 12:41:36 +01:00 committed by GitHub
parent ed47574d17
commit 6568153a09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ interface Effect {
type AbstractFunction = (...args: any[]) => any;
export class HooksContext<TRenderer extends Renderer, TArgs = Args> {
export class HooksContext<TRenderer extends Renderer, TArgs extends Args = Args> {
hookListsMap: WeakMap<AbstractFunction, Hook[]> = undefined as any;
mountedDecorators: Set<AbstractFunction> = undefined as any;