Move type definition for angular-html-parser (#11193)

This commit is contained in:
Sosuke Suzuki authored and GitHub committed 2021-07-12 15:42:29 +09:00
1 parent ff1870ab77
commit fceaab3e84
1 file changed
+39
View File
@@ -0,0 +1,39 @@
import "angular-html-parser/lib/compiler/src/ml_parser/ast";
import { HtmlTagDefinition } from "angular-html-parser/lib/compiler/src/ml_parser/html_tags";
declare module "angular-html-parser/lib/compiler/src/ml_parser/ast" {
interface Attribute {
startSourceSpan: never;
endSourceSpan: never;
// see restoreName in parser-html.js
namespace?: string | null;
hasExplicitNamespace?: boolean;
}
interface CDATA {
startSourceSpan: never;
endSourceSpan: never;
}
interface Comment {
startSourceSpan: never;
endSourceSpan: never;
}
interface DocType {
startSourceSpan: never;
endSourceSpan: never;
}
interface Element {
tagDefinition: HtmlTagDefinition;
// see restoreName in parser-html.js
namespace?: string | null;
hasExplicitNamespace?: boolean;
}
interface Text {
startSourceSpan: never;
endSourceSpan: never;
}
}