Improve import alias

@file/ and @export/ instead of file/ and export/ etc
This commit is contained in:
Dolan Miu
2022-06-26 23:26:42 +01:00
parent c19bc6b4b3
commit 982d923553
380 changed files with 758 additions and 521 deletions

View File

@ -1,5 +1,7 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { DeletedNumberOfPages, DeletedNumberOfPagesSection, DeletedPage } from "./deleted-page-number";
describe("Deleted Page", () => {

View File

@ -1,6 +1,6 @@
import { TextAttributes } from "file/paragraph/run/text-attributes";
import { SpaceType } from "file/space-type";
import { XmlComponent } from "file/xml-components";
import { TextAttributes } from "@file/paragraph/run/text-attributes";
import { SpaceType } from "@file/space-type";
import { XmlComponent } from "@file/xml-components";
export class DeletedPage extends XmlComponent {
constructor() {

View File

@ -1,6 +1,9 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { FootnoteReferenceRun, PageNumber } from "../../index";
import { Formatter } from "@export/formatter";
import { FootnoteReferenceRun } from "@file/footnotes";
import { PageNumber } from "@file/paragraph";
import { DeletedTextRun } from "./deleted-text-run";
describe("DeletedTextRun", () => {

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components";
import { XmlComponent } from "@file/xml-components";
import { IRunOptions, RunProperties } from "../../index";
import { Break } from "../../paragraph/run/break";

View File

@ -1,5 +1,7 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { DeletedText } from "./deleted-text";
describe("Deleted Text", () => {

View File

@ -1,6 +1,6 @@
import { TextAttributes } from "file/paragraph/run/text-attributes";
import { SpaceType } from "file/space-type";
import { XmlComponent } from "file/xml-components";
import { TextAttributes } from "@file/paragraph/run/text-attributes";
import { SpaceType } from "@file/space-type";
import { XmlComponent } from "@file/xml-components";
export class DeletedText extends XmlComponent {
constructor(text: string) {

View File

@ -1,5 +1,7 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { InsertedTextRun } from "./inserted-text-run";
describe("InsertedTextRun", () => {

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components";
import { XmlComponent } from "@file/xml-components";
import { IRunOptions, TextRun } from "../../index";
import { ChangeAttributes, IChangedAttributesProperties } from "../track-revision";

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components";
import { XmlAttributeComponent } from "@file/xml-components";
export interface IChangedAttributesProperties {
readonly id: number;