Skip to content

Commit 4e23aba

Browse files
committed
Use .ts
1 parent 4538275 commit 4e23aba

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

packages/angular-html-parser/src/index.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { HtmlParser } from "../../compiler/src/ml_parser/html_parser.js";
2-
import { XmlParser } from "../../compiler/src/ml_parser/xml_parser.js";
3-
import type { TagContentType } from "../../compiler/src/ml_parser/tags.js";
4-
import { ParseTreeResult as HtmlParseTreeResult } from "../../compiler/src/ml_parser/parser.js";
1+
import { HtmlParser } from "../../compiler/src/ml_parser/html_parser.ts";
2+
import { XmlParser } from "../../compiler/src/ml_parser/xml_parser.ts";
3+
import type { TagContentType } from "../../compiler/src/ml_parser/tags.ts";
4+
import { ParseTreeResult as HtmlParseTreeResult } from "../../compiler/src/ml_parser/parser.ts";
55

66
export interface HtmlParseOptions {
77
/**
@@ -88,21 +88,21 @@ export function parseXml(input: string) {
8888
}
8989

9090
// For prettier
91-
export { TagContentType } from "../../compiler/src/ml_parser/tags.js";
91+
export { TagContentType } from "../../compiler/src/ml_parser/tags.ts";
9292
export {
9393
RecursiveVisitor,
9494
visitAll,
95-
} from "../../compiler/src/ml_parser/ast.js";
95+
} from "../../compiler/src/ml_parser/ast.ts";
9696
export {
9797
ParseSourceSpan,
9898
ParseLocation,
9999
ParseSourceFile,
100-
} from "../../compiler/src/parse_util.js";
101-
export { getHtmlTagDefinition } from "../../compiler/src/ml_parser/html_tags.js";
100+
} from "../../compiler/src/parse_util.ts";
101+
export { getHtmlTagDefinition } from "../../compiler/src/ml_parser/html_tags.ts";
102102

103103
// Types
104-
export type { ParseTreeResult } from "../../compiler/src/ml_parser/parser.js";
105-
export type * as Ast from "../../compiler/src/ml_parser/ast.js";
104+
export type { ParseTreeResult } from "../../compiler/src/ml_parser/parser.ts";
105+
export type * as Ast from "../../compiler/src/ml_parser/ast.ts";
106106

107107
// Remove these alias in next major release
108108
export type { HtmlParseOptions as ParseOptions };

packages/angular-html-parser/test/index_spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { parse, TagContentType } from "../src/index.js";
2-
import { humanizeDom } from "../../compiler/test/ml_parser/ast_spec_utils.js";
3-
import * as ast from "../../compiler/src/ml_parser/ast.js";
41
import { describe, it, expect } from "vitest";
2+
import { parse, TagContentType } from "../src/index.ts";
3+
import { humanizeDom } from "../../compiler/test/ml_parser/ast_spec_utils.ts";
4+
import * as ast from "../../compiler/src/ml_parser/ast.ts";
55

66
describe("options", () => {
77
describe("getTagContentType", () => {

packages/angular-html-parser/test/xml_spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { it, expect } from "vitest";
22
import { outdent } from "outdent";
33
import { parseXml } from "../src/index.ts";
4-
import { humanizeDom } from "../../compiler/test/ml_parser/ast_spec_utils.js";
5-
import * as ast from "../../compiler/src/ml_parser/ast.js";
4+
import { humanizeDom } from "../../compiler/test/ml_parser/ast_spec_utils.ts";
5+
import * as ast from "../../compiler/src/ml_parser/ast.ts";
66

77
it("parseXml", () => {
88
const input = outdent`

0 commit comments

Comments
 (0)