Skip to content

Commit f72569a

Browse files
authored
Merge 29d2159 into b0c3f82
2 parents b0c3f82 + 29d2159 commit f72569a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/sweet-mice-love.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@lit-labs/context': patch
3+
---
4+
5+
Explicitly annotate the this value of a set function. This makes some tooling happier.

packages/labs/context/src/lib/decorators/provide.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export function provide<ValueType>({
6565
const oldSetter = descriptor?.set;
6666
const newDescriptor = {
6767
...descriptor,
68-
set: function (value: ValueType) {
68+
set: function (this: ReactiveElement, value: ValueType) {
6969
controllerMap.get(this)?.setValue(value);
7070
if (oldSetter) {
7171
oldSetter.call(this, value);

0 commit comments

Comments
 (0)