File tree Expand file tree Collapse file tree
packages/angular-output-target Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 "@angular/forms" : " 8.2.14"
4040 },
4141 "peerDependencies" : {
42- "@stencil/core" : " ^2.9.0 "
42+ "@stencil/core" : " ^2.17.2 "
4343 },
4444 "jest" : {
4545 "transform" : {
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ export const createComponentDefinition = (
3030 }
3131
3232 const tagNameAsPascal = dashToPascalCase ( cmpMeta . tagName ) ;
33+ const classTypeParams =
34+ cmpMeta . componentClassTypeParameters . length > 0
35+ ? `<${ cmpMeta . componentClassTypeParameters . join ( ',' ) } >`
36+ : '' ;
3337
3438 const outputsInterface : Set < string > = new Set ( ) ;
3539 const outputReferenceRemap : { [ p : string ] : string } = { } ;
@@ -90,7 +94,7 @@ export const createComponentDefinition = (
9094 const lines = [
9195 '' , // Empty first line
9296 `${ [ ...outputsInterface ] . join ( '\n' ) }
93- export declare interface ${ tagNameAsPascal } extends Components.${ tagNameAsPascal } {${ componentEvents . length > 1 ? componentEvents . join ( '\n' ) : '' } }
97+ export declare interface ${ tagNameAsPascal } ${ classTypeParams } extends Components.${ tagNameAsPascal } ${ classTypeParams } {${ componentEvents . length > 1 ? componentEvents . join ( '\n' ) : '' } }
9498
9599${ getProxyCmp (
96100 cmpMeta . tagName ,
@@ -101,7 +105,7 @@ ${getProxyCmp(
101105@Component({
102106 ${ directiveOpts . join ( ',\n ' ) }
103107})
104- export class ${ tagNameAsPascal } {` ,
108+ export class ${ tagNameAsPascal } ${ classTypeParams } {` ,
105109 ] ;
106110
107111 lines . push ( ' protected el: HTMLElement;' ) ;
You can’t perform that action at this time.
0 commit comments