Move type definition for angular-html-parser (#11193)
This commit is contained in:
1 parent
ff1870ab77
commit
fceaab3e84
1 file changed
Vendored
+39
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user