refactor: use spread args
This commit is contained in:
parent
4974a47111
commit
c206531330
@ -80,7 +80,10 @@ type DirectiveArguments = [
|
|||||||
DirectiveModifiers | undefined
|
DirectiveModifiers | undefined
|
||||||
][]
|
][]
|
||||||
|
|
||||||
export function applyDirectives(vnode: VNode, directives: DirectiveArguments) {
|
export function applyDirectives(
|
||||||
|
vnode: VNode,
|
||||||
|
...directives: DirectiveArguments
|
||||||
|
) {
|
||||||
for (let i = 0; i < directives.length; i++) {
|
for (let i = 0; i < directives.length; i++) {
|
||||||
applyDirective(vnode, ...directives[i])
|
applyDirective(vnode, ...directives[i])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user