source: trip-planner-front/node_modules/@angular/compiler/src/render3/r3_pipe_compiler.d.ts

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import * as o from '../output/output_ast';
9import { R3DependencyMetadata } from './r3_factory';
10import { R3CompiledExpression, R3Reference } from './util';
11export interface R3PipeMetadata {
12 /**
13 * Name of the pipe type.
14 */
15 name: string;
16 /**
17 * An expression representing a reference to the pipe itself.
18 */
19 type: R3Reference;
20 /**
21 * An expression representing the pipe being compiled, intended for use within a class definition
22 * itself.
23 *
24 * This can differ from the outer `type` if the class is being compiled by ngcc and is inside an
25 * IIFE structure that uses a different name internally.
26 */
27 internalType: o.Expression;
28 /**
29 * Number of generic type parameters of the type itself.
30 */
31 typeArgumentCount: number;
32 /**
33 * Name of the pipe.
34 */
35 pipeName: string;
36 /**
37 * Dependencies of the pipe's constructor.
38 */
39 deps: R3DependencyMetadata[] | null;
40 /**
41 * Whether the pipe is marked as pure.
42 */
43 pure: boolean;
44}
45export declare function compilePipeFromMetadata(metadata: R3PipeMetadata): R3CompiledExpression;
46export declare function createPipeType(metadata: R3PipeMetadata): o.Type;
Note: See TracBrowser for help on using the repository browser.