@@ -70,48 +70,76 @@ export declare class TodoModule {
7070/****************************************************************************************************
7171 * PARTIAL FILE: operators.js
7272 ****************************************************************************************************/
73- import { Component , NgModule } from '@angular/core' ;
73+ import { Component , NgModule , Pipe } from '@angular/core' ;
7474import * as i0 from "@angular/core" ;
7575export class MyApp {
76+ constructor ( ) {
77+ this . foo = { bar : 'baz' } ;
78+ }
7679}
7780MyApp . ɵfac = i0 . ɵɵngDeclareFactory ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : MyApp , deps : [ ] , target : i0 . ɵɵFactoryTarget . Component } ) ;
7881MyApp . ɵcmp = i0 . ɵɵngDeclareComponent ( { minVersion : "14.0.0" , version : "0.0.0-PLACEHOLDER" , type : MyApp , isStandalone : false , selector : "ng-component" , ngImport : i0 , template : `
7982 {{ 1 + 2 }}
8083 {{ (1 % 2) + 3 / 4 * 5 }}
8184 {{ +1 }}
82- ` , isInline : true } ) ;
85+ {{ typeof {} === 'object' }}
86+ {{ !(typeof {} === 'object') }}
87+ {{ typeof foo?.bar === 'string' }}
88+ {{ typeof foo?.bar | identity }}
89+ ` , isInline : true , dependencies : [ { kind : "pipe" , type : i0 . forwardRef ( ( ) => IdentityPipe ) , name : "identity" } ] } ) ;
8390i0 . ɵɵngDeclareClassMetadata ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : MyApp , decorators : [ {
8491 type : Component ,
8592 args : [ {
8693 template : `
8794 {{ 1 + 2 }}
8895 {{ (1 % 2) + 3 / 4 * 5 }}
8996 {{ +1 }}
97+ {{ typeof {} === 'object' }}
98+ {{ !(typeof {} === 'object') }}
99+ {{ typeof foo?.bar === 'string' }}
100+ {{ typeof foo?.bar | identity }}
90101` ,
91102 standalone : false
92103 } ]
93104 } ] } ) ;
105+ export class IdentityPipe {
106+ transform ( value ) { return value ; }
107+ }
108+ IdentityPipe . ɵfac = i0 . ɵɵngDeclareFactory ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : IdentityPipe , deps : [ ] , target : i0 . ɵɵFactoryTarget . Pipe } ) ;
109+ IdentityPipe . ɵpipe = i0 . ɵɵngDeclarePipe ( { minVersion : "14.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : IdentityPipe , name : "identity" } ) ;
110+ i0 . ɵɵngDeclareClassMetadata ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : IdentityPipe , decorators : [ {
111+ type : Pipe ,
112+ args : [ { name : 'identity' } ]
113+ } ] } ) ;
94114export class MyModule {
95115}
96116MyModule . ɵfac = i0 . ɵɵngDeclareFactory ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : MyModule , deps : [ ] , target : i0 . ɵɵFactoryTarget . NgModule } ) ;
97- MyModule . ɵmod = i0 . ɵɵngDeclareNgModule ( { minVersion : "14.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : MyModule , declarations : [ MyApp ] } ) ;
117+ MyModule . ɵmod = i0 . ɵɵngDeclareNgModule ( { minVersion : "14.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : MyModule , declarations : [ MyApp , IdentityPipe ] } ) ;
98118MyModule . ɵinj = i0 . ɵɵngDeclareInjector ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : MyModule } ) ;
99119i0 . ɵɵngDeclareClassMetadata ( { minVersion : "12.0.0" , version : "0.0.0-PLACEHOLDER" , ngImport : i0 , type : MyModule , decorators : [ {
100120 type : NgModule ,
101- args : [ { declarations : [ MyApp ] } ]
121+ args : [ { declarations : [ MyApp , IdentityPipe ] } ]
102122 } ] } ) ;
103123
104124/****************************************************************************************************
105125 * PARTIAL FILE: operators.d.ts
106126 ****************************************************************************************************/
107127import * as i0 from "@angular/core" ;
108128export declare class MyApp {
129+ foo : {
130+ bar ? : string ;
131+ } ;
109132 static ɵfac : i0 . ɵɵFactoryDeclaration < MyApp , never > ;
110133 static ɵcmp : i0 . ɵɵComponentDeclaration < MyApp , "ng-component" , never , { } , { } , never , never , false , never > ;
111134}
135+ export declare class IdentityPipe {
136+ transform ( value : any ) : any ;
137+ static ɵfac : i0 . ɵɵFactoryDeclaration < IdentityPipe , never > ;
138+ static ɵpipe : i0 . ɵɵPipeDeclaration < IdentityPipe , "identity" , false > ;
139+ }
112140export declare class MyModule {
113141 static ɵfac : i0 . ɵɵFactoryDeclaration < MyModule , never > ;
114- static ɵmod : i0 . ɵɵNgModuleDeclaration < MyModule , [ typeof MyApp ] , never , never > ;
142+ static ɵmod : i0 . ɵɵNgModuleDeclaration < MyModule , [ typeof MyApp , typeof IdentityPipe ] , never , never > ;
115143 static ɵinj : i0 . ɵɵInjectorDeclaration < MyModule > ;
116144}
117145
0 commit comments