diff --git a/packages/core/src/optional/directive.ts b/packages/core/src/optional/directive.ts index ba68acb1..7c0df6a8 100644 --- a/packages/core/src/optional/directive.ts +++ b/packages/core/src/optional/directive.ts @@ -80,7 +80,10 @@ type DirectiveArguments = [ DirectiveModifiers | undefined ][] -export function applyDirectives(vnode: VNode, directives: DirectiveArguments) { +export function applyDirectives( + vnode: VNode, + ...directives: DirectiveArguments +) { for (let i = 0; i < directives.length; i++) { applyDirective(vnode, ...directives[i]) }