@angular/compiler
Version:
Angular - the compiler library
48 lines (47 loc) • 1.68 kB
TypeScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { core, ElementSchemaRegistry } from '@angular/compiler';
export declare class MockSchemaRegistry implements ElementSchemaRegistry {
existingProperties: {
[key: string]: boolean;
};
attrPropMapping: {
[key: string]: string;
};
existingElements: {
[key: string]: boolean;
};
invalidProperties: Array<string>;
invalidAttributes: Array<string>;
constructor(existingProperties: {
[key: string]: boolean;
}, attrPropMapping: {
[key: string]: string;
}, existingElements: {
[key: string]: boolean;
}, invalidProperties: Array<string>, invalidAttributes: Array<string>);
hasProperty(tagName: string, property: string, schemas: core.SchemaMetadata[]): boolean;
hasElement(tagName: string, schemaMetas: core.SchemaMetadata[]): boolean;
allKnownElementNames(): string[];
securityContext(selector: string, property: string, isAttribute: boolean): core.SecurityContext;
getMappedPropName(attrName: string): string;
getDefaultComponentElementName(): string;
validateProperty(name: string): {
error: boolean;
msg?: string;
};
validateAttribute(name: string): {
error: boolean;
msg?: string;
};
normalizeAnimationStyleProperty(propName: string): string;
normalizeAnimationStyleValue(camelCaseProp: string, userProvidedProp: string, val: string | number): {
error: string;
value: string;
};
}