Skip to content
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
1 change: 1 addition & 0 deletions types/marked/OTHER_FILES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
index.d.mts
1 change: 1 addition & 0 deletions types/marked/index.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./index.js";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is index.js referring to here? should it be index.d.ts?

Copy link
Copy Markdown
Contributor Author

@weswigham weswigham Nov 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nah - esm imports have to have extensions and TS expects them to be the "output" extensions - so the js file extension (TS then maps that back to the declaration file internally).

11 changes: 11 additions & 0 deletions types/marked/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"private": true,
"exports": {
".": {
"types": {
"import": "./index.d.mts",
"default": "./index.d.ts"
}
}
}
}