Improve import alias
@file/ and @export/ instead of file/ and export/ etc
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { XmlAttributeComponent } from "file/xml-components";
|
||||
import { XmlAttributeComponent } from "@file/xml-components";
|
||||
|
||||
export class BookmarkStartAttributes extends XmlAttributeComponent<{
|
||||
readonly id: number;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// http://officeopenxml.com/WPbookmark.php
|
||||
import { uniqueNumericId } from "convenience-functions";
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
import { XmlComponent } from "@file/xml-components";
|
||||
import { uniqueNumericId } from "@util/convenience-functions";
|
||||
|
||||
import { ParagraphChild } from "../paragraph";
|
||||
import { BookmarkEndAttributes, BookmarkStartAttributes } from "./bookmark-attributes";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { XmlAttributeComponent } from "file/xml-components";
|
||||
import { XmlAttributeComponent } from "@file/xml-components";
|
||||
|
||||
export interface IHyperlinkAttributesProperties {
|
||||
readonly id?: string;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { expect } from "chai";
|
||||
|
||||
import { Formatter } from "export/formatter";
|
||||
import { Formatter } from "@export/formatter";
|
||||
|
||||
import { TextRun } from "../run";
|
||||
import { ConcreteHyperlink, ExternalHyperlink, InternalHyperlink } from "./hyperlink";
|
||||
|
@ -1,6 +1,6 @@
|
||||
// http://officeopenxml.com/WPhyperlink.php
|
||||
import { uniqueId } from "convenience-functions";
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
import { XmlComponent } from "@file/xml-components";
|
||||
import { uniqueId } from "@util/convenience-functions";
|
||||
|
||||
import { ParagraphChild } from "../paragraph";
|
||||
import { HyperlinkAttributes, IHyperlinkAttributesProperties } from "./hyperlink-attributes";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { expect } from "chai";
|
||||
|
||||
import { Formatter } from "export/formatter";
|
||||
import { Formatter } from "@export/formatter";
|
||||
|
||||
import { OutlineLevel } from "./outline-level";
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// http://officeopenxml.com/WPparagraph.php
|
||||
import { Attributes, XmlComponent } from "file/xml-components";
|
||||
import { Attributes, XmlComponent } from "@file/xml-components";
|
||||
|
||||
export class OutlineLevel extends XmlComponent {
|
||||
constructor(public readonly level: number) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { expect } from "chai";
|
||||
|
||||
import { Formatter } from "export/formatter";
|
||||
import { Formatter } from "@export/formatter";
|
||||
import { PageReferenceFieldInstruction } from "./pageref-field-instruction";
|
||||
|
||||
describe("PageReference field instruction", () => {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { SpaceType } from "file/space-type";
|
||||
import { XmlComponent } from "file/xml-components";
|
||||
import { SpaceType } from "@file/space-type";
|
||||
import { XmlComponent } from "@file/xml-components";
|
||||
|
||||
import { TextAttributes } from "../run/text-attributes";
|
||||
import { IPageReferenceOptions } from "./pageref-properties";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { expect } from "chai";
|
||||
|
||||
import { Formatter } from "export/formatter";
|
||||
import { Formatter } from "@export/formatter";
|
||||
import { PageReference } from "./pageref";
|
||||
|
||||
describe("PageReference", () => {
|
||||
|
@ -1,5 +1,5 @@
|
||||
// See https://www.ecma-international.org/publications/standards/Ecma-376.htm (at Part 1, Page 1234)
|
||||
import { Begin, End } from "file/paragraph/run/field";
|
||||
import { Begin, End } from "@file/paragraph/run/field";
|
||||
import { Run } from "../run";
|
||||
import { PageReferenceFieldInstruction } from "./pageref-field-instruction";
|
||||
import type { IPageReferenceOptions } from "./pageref-properties";
|
||||
|
Reference in New Issue
Block a user