File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/@lwc/engine-core/src/framework Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -270,9 +270,13 @@ const lightingElementDef: ComponentDef = {
270
270
render : BaseLightningElement . prototype . render ,
271
271
} ;
272
272
273
+ enum PropDefType {
274
+ any = 'any' ,
275
+ }
276
+
273
277
interface PropDef {
274
278
config : number ;
275
- type : string ;
279
+ type : PropDefType ;
276
280
attr : string ;
277
281
}
278
282
type PublicMethod = ( ...args : any [ ] ) => any ;
@@ -299,7 +303,7 @@ export function getComponentDef(Ctor: any, subclassComponentName?: string): Publ
299
303
// avoid leaking the reference to the public props descriptors
300
304
publicProps [ key ] = {
301
305
config : propsConfig [ key ] || 0 , // a property by default
302
- type : ' any' , // no type inference for public services
306
+ type : PropDefType . any , // no type inference for public services
303
307
attr : getAttrNameFromPropName ( key ) ,
304
308
} ;
305
309
}
You can’t perform that action at this time.
0 commit comments