Skip to content

Commit 57379f2

Browse files
committed
bind-type Add changeset
1 parent d92b648 commit 57379f2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.changeset/orange-keys-listen.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@merkur/core": patch
3+
---
4+
5+
Type change
6+
7+
- **What?** Change type for attribute `widget` of function `bindWidgetToFunctions()`.
8+
- **Why?** Since this function takes current widget and binds that to functions (by default on the widget itself, optionally on any supplied object), *it has to be type `WidgetPartial`. The type `Widget` is the result of this operation. As currently typed, it doesn't work in plugin `setup()` and `create()` methods, because those get `WidgetPartial` as input attrs.
9+
- **How?** Nothing.

0 commit comments

Comments
 (0)