1
|
/**
|
2
|
* @license
|
3
|
* Copyright Google Inc. 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
|
*/
|
8
|
import { Directive, Type } from '@angular/core';
|
9
|
import { CompileReflector } from './compile_reflector';
|
10
|
export declare class DirectiveResolver {
|
11
|
private _reflector;
|
12
|
constructor(_reflector: CompileReflector);
|
13
|
isDirective(type: Type<any>): boolean;
|
14
|
/**
|
15
|
* Return {@link Directive} for a given `Type`.
|
16
|
*/
|
17
|
resolve(type: Type<any>): Directive;
|
18
|
resolve(type: Type<any>, throwIfNotFound: true): Directive;
|
19
|
resolve(type: Type<any>, throwIfNotFound: boolean): Directive | null;
|
20
|
private _mergeWithPropertyMetadata(dm, propertyMetadata, directiveType);
|
21
|
private _extractPublicName(def);
|
22
|
private _dedupeBindings(bindings);
|
23
|
private _merge(directive, inputs, outputs, host, queries, directiveType);
|
24
|
}
|
25
|
export declare function findLast<T>(arr: T[], condition: (value: T) => boolean): T | null;
|