File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " js-element" ,
3- "version" : " 0.0.216 " ,
3+ "version" : " 0.0.220 " ,
44 "description" : " " ,
55 "license" : " LGPL-3.0" ,
66 "main" : " ./index.js" ,
Original file line number Diff line number Diff line change @@ -27,12 +27,10 @@ const interceptions = {
2727
2828// === types =========================================================
2929
30- declare const methodsSymbol : unique symbol
31-
3230type Methods = Record < string , ( ...args : any [ ] ) => any >
3331
3432type Component < M extends Methods = { } > = HTMLElement &
35- M & { [ methodsSymbol ] : M }
33+ M & { valueOf ( ) : HTMLElement & M }
3634
3735type MethodsOf < T > = T extends Component < infer M > ? M : never
3836
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ function implThemeInfo() {
2828@elem ( {
2929 tag : 'context-demo' ,
3030 uses : [ ThemeProvider , ThemeInfo ] ,
31- impl : lit ( implContextDemo )
31+ impl : lit ( contextDemoImpl )
3232} )
3333class ContextDemo extends component ( ) { }
3434
35- function implContextDemo ( self : ContextDemo ) {
35+ function contextDemoImpl ( self : ContextDemo ) {
3636 const [ state , setState ] = useState ( { theme : 'light' } )
3737
3838 useInterval ( ( ) => {
Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ function counterImpl(self: Counter) {
4242@elem ( {
4343 tag : 'x-counter-demo' ,
4444 styles : ( ) => styles ,
45- impl : lit ( counterDemo )
45+ impl : lit ( counterDemoImpl )
4646} )
4747class CounterDemo extends component ( ) { }
4848
49- function counterDemo ( ) {
49+ function counterDemoImpl ( ) {
5050 const counterRef = createRef < Counter > ( )
5151
5252 const onResetClick = ( ) => counterRef . value ! . reset ( )
You can’t perform that action at this time.
0 commit comments