UNPKG

1.26 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 { TagContentType, TagDefinition } from './tags';
9export declare class HtmlTagDefinition implements TagDefinition {
10 private closedByChildren;
11 private contentType;
12 closedByParent: boolean;
13 implicitNamespacePrefix: string | null;
14 isVoid: boolean;
15 ignoreFirstLf: boolean;
16 canSelfClose: boolean;
17 preventNamespaceInheritance: boolean;
18 constructor({ closedByChildren, implicitNamespacePrefix, contentType, closedByParent, isVoid, ignoreFirstLf, preventNamespaceInheritance }?: {
19 closedByChildren?: string[];
20 closedByParent?: boolean;
21 implicitNamespacePrefix?: string;
22 contentType?: TagContentType | {
23 default: TagContentType;
24 [namespace: string]: TagContentType;
25 };
26 isVoid?: boolean;
27 ignoreFirstLf?: boolean;
28 preventNamespaceInheritance?: boolean;
29 });
30 isClosedByChild(name: string): boolean;
31 getContentType(prefix?: string): TagContentType;
32}
33export declare function getHtmlTagDefinition(tagName: string): HtmlTagDefinition;