UNPKG

1.21 kBTypeScriptView Raw
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 { SchemaMetadata, SecurityContext } from '../core';
9export declare abstract class ElementSchemaRegistry {
10 abstract hasProperty(tagName: string, propName: string, schemaMetas: SchemaMetadata[]): boolean;
11 abstract hasElement(tagName: string, schemaMetas: SchemaMetadata[]): boolean;
12 abstract securityContext(elementName: string, propName: string, isAttribute: boolean): SecurityContext;
13 abstract allKnownElementNames(): string[];
14 abstract getMappedPropName(propName: string): string;
15 abstract getDefaultComponentElementName(): string;
16 abstract validateProperty(name: string): {
17 error: boolean;
18 msg?: string;
19 };
20 abstract validateAttribute(name: string): {
21 error: boolean;
22 msg?: string;
23 };
24 abstract normalizeAnimationStyleProperty(propName: string): string;
25 abstract normalizeAnimationStyleValue(camelCaseProp: string, userProvidedProp: string, val: string | number): {
26 error: string;
27 value: string;
28 };
29}