-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add dev-only warning to props that are not decorated with @api (#…
- Loading branch information
1 parent
92de2c9
commit 4b37d7f
Showing
9 changed files
with
197 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...es/@lwc/integration-karma/test/api/getComponentDef/x/htmlElementProps/htmlElementProps.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { LightningElement } from 'lwc'; | ||
|
||
export default class HtmlElementProps extends LightningElement { | ||
constructor() { | ||
super(); | ||
} | ||
|
||
attributes = 'baz'; | ||
tabIndex = 'bar'; | ||
title = 'foo'; | ||
} |
27 changes: 27 additions & 0 deletions
27
...es/@lwc/integration-karma/test/api/getComponentDef/x/privateAccessors/privateAccessors.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { LightningElement, api, track } from 'lwc'; | ||
|
||
export default class PrivateAccessors extends LightningElement { | ||
_privateProp; | ||
get privateProp() { | ||
return this._privateProp; | ||
} | ||
|
||
set privateProp(newValue) { | ||
this._privateProp = newValue; | ||
} | ||
|
||
_publicProp; | ||
@api | ||
get publicProp() { | ||
return this._publicProp; | ||
} | ||
|
||
set publicProp(newValue) { | ||
this._publicProp = newValue; | ||
} | ||
|
||
nonDecoratedPrivateProp = 'foo'; | ||
|
||
@track | ||
trackedProp = 'bar'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters