We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b0c3f82 + 29d2159 commit f72569aCopy full SHA for f72569a
2 files changed
.changeset/sweet-mice-love.md
@@ -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
@@ -65,7 +65,7 @@ export function provide<ValueType>({
65
const oldSetter = descriptor?.set;
66
const newDescriptor = {
67
...descriptor,
68
- set: function (value: ValueType) {
+ set: function (this: ReactiveElement, value: ValueType) {
69
controllerMap.get(this)?.setValue(value);
70
if (oldSetter) {
71
oldSetter.call(this, value);
0 commit comments