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,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components";
import { XmlAttributeComponent } from "@file/xml-components";
export class FootnoteAttributes extends XmlAttributeComponent<{
readonly type?: string;

View File

@ -1,7 +1,7 @@
import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Paragraph, TextRun } from "file/paragraph";
import { Formatter } from "@export/formatter";
import { Paragraph, TextRun } from "@file/paragraph";
import { Footnote, FootnoteType } from "./footnote";

View File

@ -1,5 +1,5 @@
import { Paragraph } from "file/paragraph";
import { XmlComponent } from "file/xml-components";
import { Paragraph } from "@file/paragraph";
import { XmlComponent } from "@file/xml-components";
import { FootnoteAttributes } from "./footnote-attributes";
import { FootnoteRefRun } from "./run/footnote-ref-run";

View File

@ -1,4 +1,4 @@
import { Run } from "file/paragraph";
import { Run } from "@file/paragraph";
import { ContinuationSeperator } from "./continuation-seperator";
export class ContinuationSeperatorRun extends Run {

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components";
import { XmlComponent } from "@file/xml-components";
export class ContinuationSeperator extends XmlComponent {
constructor() {

View File

@ -1,4 +1,5 @@
import { Run } from "file/paragraph";
import { Run } from "@file/paragraph";
import { FootnoteRef } from "./footnote-ref";
export class FootnoteRefRun extends Run {

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components";
import { XmlComponent } from "@file/xml-components";
export class FootnoteRef extends XmlComponent {
constructor() {

View File

@ -1,5 +1,5 @@
import { Run } from "file/paragraph/run";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
import { Run } from "@file/paragraph/run";
import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
export class FootNoteReferenceRunAttributes extends XmlAttributeComponent<{
readonly id: number;

View File

@ -1,4 +1,4 @@
import { Run } from "file/paragraph";
import { Run } from "@file/paragraph";
import { Seperator } from "./seperator";
export class SeperatorRun extends Run {

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components";
import { XmlComponent } from "@file/xml-components";
export class Seperator extends XmlComponent {
constructor() {

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components";
import { XmlAttributeComponent } from "@file/xml-components";
export class FootnotesAttributes extends XmlAttributeComponent<{
readonly wpc?: string;

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components";
import { XmlComponent } from "@file/xml-components";
import { LineRuleType, Paragraph } from "../paragraph";
import { Footnote, FootnoteType } from "./footnote/footnote";