Skip to content

Commit 9f22d02

Browse files
authored
Merge pull request #2096 from riganti/fix-jscomponent-command-type
Fix JsComponent declared type of commands argument
2 parents e9d3a11 + e102f13 commit 9f22d02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Framework/Framework/Resources/Scripts/global-declarations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ type DotvvmJsComponentFactory = {
334334
create(
335335
element: HTMLElement,
336336
props: { [key: string]: any },
337-
commands: { [key: string]: (args: any[]) => Promise<any> },
337+
commands: { [key: string]: (...args: any[]) => Promise<any> },
338338
templates: { [key: string]: string },
339339
setProps: (p: { [key: string]: any }) => void
340340
): DotvvmJsComponent

0 commit comments

Comments
 (0)