@@ -8605,7 +8605,7 @@ function allTests(os: string) {
86058605
86068606 expect ( jsContents )
86078607 . toContain (
8608- 'inputs: { value: [i0.ɵɵInputFlags.HasTransform , "value", "value", toNumber] }' ) ;
8608+ 'inputs: { value: [i0.ɵɵInputFlags.HasDecoratorInputTransform , "value", "value", toNumber] }' ) ;
86098609 expect ( jsContents ) . toContain ( 'features: [i0.ɵɵInputTransformsFeature]' ) ;
86108610 expect ( dtsContents ) . toContain ( 'static ngAcceptInputType_value: boolean | string;' ) ;
86118611 } ) ;
@@ -8629,20 +8629,19 @@ function allTests(os: string) {
86298629
86308630 expect ( jsContents )
86318631 . toContain (
8632- 'inputs: { value: [i0.ɵɵInputFlags.HasTransform , "value", "value", toNumber] }' ) ;
8632+ 'inputs: { value: [i0.ɵɵInputFlags.HasDecoratorInputTransform , "value", "value", toNumber] }' ) ;
86338633 expect ( jsContents )
86348634 . toContain ( 'features: [i0.ɵɵInputTransformsFeature, i0.ɵɵStandaloneFeature]' ) ;
86358635 expect ( dtsContents ) . toContain ( 'static ngAcceptInputType_value: boolean | string;' ) ;
86368636 } ) ;
86378637
8638- it ( 'should compile an input with a transform function that contains a generic parameter' ,
8639- ( ) => {
8640- env . write ( '/types.ts' , `
8638+ it ( 'should compile an input with a transform function that contains a generic parameter' , ( ) => {
8639+ env . write ( '/types.ts' , `
86418640 export interface GenericWrapper<T> {
86428641 value: T;
86438642 }
86448643 ` ) ;
8645- env . write ( '/test.ts' , `
8644+ env . write ( '/test.ts' , `
86468645 import {Directive, Input} from '@angular/core';
86478646 import {GenericWrapper} from './types';
86488647
@@ -8654,20 +8653,20 @@ function allTests(os: string) {
86548653 }
86558654 ` ) ;
86568655
8657- env . driveMain ( ) ;
8656+ env . driveMain ( ) ;
86588657
8659- const jsContents = env . getContents ( 'test.js' ) ;
8660- const dtsContents = env . getContents ( 'test.d.ts' ) ;
8658+ const jsContents = env . getContents ( 'test.js' ) ;
8659+ const dtsContents = env . getContents ( 'test.d.ts' ) ;
86618660
8662- expect ( jsContents )
8663- . toContain (
8664- 'inputs: { value: [i0.ɵɵInputFlags.HasTransform , "value", "value", toNumber] }' ) ;
8665- expect ( jsContents ) . toContain ( 'features: [i0.ɵɵInputTransformsFeature]' ) ;
8666- expect ( dtsContents ) . toContain ( 'import * as i1 from "./types"' ) ;
8667- expect ( dtsContents )
8668- . toContain (
8669- 'static ngAcceptInputType_value: boolean | string | i1.GenericWrapper<string>;' ) ;
8670- } ) ;
8661+ expect ( jsContents )
8662+ . toContain (
8663+ 'inputs: { value: [i0.ɵɵInputFlags.HasDecoratorInputTransform , "value", "value", toNumber] }' ) ;
8664+ expect ( jsContents ) . toContain ( 'features: [i0.ɵɵInputTransformsFeature]' ) ;
8665+ expect ( dtsContents ) . toContain ( 'import * as i1 from "./types"' ) ;
8666+ expect ( dtsContents )
8667+ . toContain (
8668+ 'static ngAcceptInputType_value: boolean | string | i1.GenericWrapper<string>;' ) ;
8669+ } ) ;
86718670
86728671 it ( 'should compile an input with a transform function that contains nested generic parameters' ,
86738672 ( ) => {
@@ -8702,7 +8701,7 @@ function allTests(os: string) {
87028701
87038702 expect ( jsContents )
87048703 . toContain (
8705- 'inputs: { value: [i0.ɵɵInputFlags.HasTransform , "value", "value", toNumber] }' ) ;
8704+ 'inputs: { value: [i0.ɵɵInputFlags.HasDecoratorInputTransform , "value", "value", toNumber] }' ) ;
87068705 expect ( jsContents ) . toContain ( 'features: [i0.ɵɵInputTransformsFeature]' ) ;
87078706 expect ( dtsContents ) . toContain ( 'import * as i1 from "./types"' ) ;
87088707 expect ( dtsContents ) . toContain ( 'import * as i2 from "./other-types"' ) ;
@@ -8740,7 +8739,7 @@ function allTests(os: string) {
87408739 expect ( jsContents ) . toContain ( `import { externalToNumber } from 'external';` ) ;
87418740 expect ( jsContents )
87428741 . toContain (
8743- 'inputs: { value: [i0.ɵɵInputFlags.HasTransform , "value", "value", externalToNumber] }' ) ;
8742+ 'inputs: { value: [i0.ɵɵInputFlags.HasDecoratorInputTransform , "value", "value", externalToNumber] }' ) ;
87448743 expect ( jsContents ) . toContain ( 'features: [i0.ɵɵInputTransformsFeature]' ) ;
87458744 expect ( dtsContents ) . toContain ( 'import * as i1 from "external";' ) ;
87468745 expect ( dtsContents ) . toContain ( 'static ngAcceptInputType_value: i1.ExternalToNumberType;' ) ;
@@ -8772,7 +8771,7 @@ function allTests(os: string) {
87728771
87738772 expect ( jsContents )
87748773 . toContain (
8775- 'inputs: { value: [i0.ɵɵInputFlags.HasTransform , "value", "value", (value) => value ? 1 : 0] }' ) ;
8774+ 'inputs: { value: [i0.ɵɵInputFlags.HasDecoratorInputTransform , "value", "value", (value) => value ? 1 : 0] }' ) ;
87768775 expect ( jsContents ) . toContain ( 'features: [i0.ɵɵInputTransformsFeature]' ) ;
87778776 expect ( dtsContents ) . toContain ( 'import * as i1 from "external";' ) ;
87788777 expect ( dtsContents ) . toContain ( 'static ngAcceptInputType_value: i1.ExternalToNumberType;' ) ;
@@ -8801,7 +8800,7 @@ function allTests(os: string) {
88018800
88028801 expect ( jsContents )
88038802 . toContain (
8804- 'inputs: { value: [i0.ɵɵInputFlags.HasTransform , "value", "value", toBoolean] }' ) ;
8803+ 'inputs: { value: [i0.ɵɵInputFlags.HasDecoratorInputTransform , "value", "value", toBoolean] }' ) ;
88058804 expect ( jsContents ) . toContain ( 'features: [i0.ɵɵInputTransformsFeature]' ) ;
88068805 expect ( dtsContents )
88078806 . toContain ( `static ngAcceptInputType_value: boolean | "" | "true" | "false";` ) ;
@@ -8826,7 +8825,7 @@ function allTests(os: string) {
88268825
88278826 expect ( jsContents )
88288827 . toContain (
8829- 'inputs: { value: [i0.ɵɵInputFlags.HasTransform , "value", "value", toNumber] }' ) ;
8828+ 'inputs: { value: [i0.ɵɵInputFlags.HasDecoratorInputTransform , "value", "value", toNumber] }' ) ;
88308829 expect ( jsContents ) . toContain ( 'features: [i0.ɵɵInputTransformsFeature]' ) ;
88318830 expect ( dtsContents ) . toContain ( 'static ngAcceptInputType_value: boolean | string;' ) ;
88328831 } ) ;
@@ -8850,7 +8849,7 @@ function allTests(os: string) {
88508849
88518850 expect ( jsContents )
88528851 . toContain (
8853- 'inputs: { value: [i0.ɵɵInputFlags.HasTransform , "value", "value", toNumber] }' ) ;
8852+ 'inputs: { value: [i0.ɵɵInputFlags.HasDecoratorInputTransform , "value", "value", toNumber] }' ) ;
88548853 expect ( jsContents ) . toContain ( 'features: [i0.ɵɵInputTransformsFeature]' ) ;
88558854 expect ( dtsContents ) . toContain ( 'static ngAcceptInputType_value: unknown;' ) ;
88568855 } ) ;
@@ -8877,7 +8876,7 @@ function allTests(os: string) {
88778876
88788877 expect ( jsContents )
88798878 . toContain (
8880- 'inputs: { value: [i0.ɵɵInputFlags.HasTransform , "value", "value", toNumber] }' ) ;
8879+ 'inputs: { value: [i0.ɵɵInputFlags.HasDecoratorInputTransform , "value", "value", toNumber] }' ) ;
88818880 expect ( jsContents )
88828881 . toContain ( 'features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature]' ) ;
88838882 expect ( dtsContents ) . toContain ( 'static ngAcceptInputType_value: boolean | string;' ) ;
@@ -8907,7 +8906,7 @@ function allTests(os: string) {
89078906
89088907 expect ( jsContents )
89098908 . toContain (
8910- 'inputs: { element: [i0.ɵɵInputFlags.HasTransform , "element", "element", coerceElement] }' ) ;
8909+ 'inputs: { element: [i0.ɵɵInputFlags.HasDecoratorInputTransform , "element", "element", coerceElement] }' ) ;
89118910 expect ( jsContents ) . toContain ( 'features: [i0.ɵɵInputTransformsFeature]' ) ;
89128911 expect ( dtsContents )
89138912 . toContain (
0 commit comments