Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Support for TypeScript NodeNext/Node16 Module Resolution #742

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions es6/docxtemplater.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export namespace DXT {
declare namespace DXT {
type integer = number;

interface SimplePart {
Expand Down Expand Up @@ -98,6 +98,7 @@ export namespace DXT {
}

declare class Docxtemplater<TZip = any> {
static default: typeof Docxtemplater;
/**
* Create Docxtemplater instance (and compile it on the fly)
*
Expand Down Expand Up @@ -125,4 +126,9 @@ declare class Docxtemplater<TZip = any> {
replaceLastSection?: boolean; // used for the subsection module
}

export default Docxtemplater;
declare namespace Docxtemplater {
export { DXT }
}

export = Docxtemplater;

1 change: 1 addition & 0 deletions es6/docxtemplater.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,3 +522,4 @@ Docxtemplater.XmlTemplater = require("./xml-templater.js");
Docxtemplater.FileTypeConfig = require("./file-type-config.js");
Docxtemplater.XmlMatcher = require("./xml-matcher.js");
module.exports = Docxtemplater;
module.exports.default = Docxtemplater;