Skip to content

Commit

Permalink
test(lwc1097): @wire expects a function identifier as first parameter (
Browse files Browse the repository at this point in the history
  • Loading branch information
cardoso authored Jan 21, 2025
1 parent 89198db commit 7f09e2c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { wire, LightningElement } from "lwc";
export default class Test extends LightningElement {
@wire(function adapter() {}, {}) wiredProp;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"message": "LWC1097: @wire expects a function identifier as first parameter.",
"loc": {
"line": 3,
"column": 8,
"start": 107,
"length": 21
},
"filename": "test.js"
}

0 comments on commit 7f09e2c

Please sign in to comment.