Skip to content

Commit 48ca76c

Browse files
committed
fix(types): wrong types generated for markdown-it > mdurl
it's likely an issue with rollup-plugin-dts as both `class Foo {}; export type { Foo }` and `class _Foo {}; type Foo = _Foo; export { Foo }` should work the same closes vuejs#3935
1 parent afc611d commit 48ca76c

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@
216216
},
217217
"overrides": {
218218
"ora>string-width": "^5"
219+
},
220+
"patchedDependencies": {
221+
219222
}
220223
}
221224
}

patches/@[email protected]

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
diff --git a/lib/parse.d.mts b/lib/parse.d.mts
2+
index 2e0d8f2ea00a06c0971a68d34946e797b7f8152d..f61d4dd05c1b181bc6d2d8683153abcd10fe9ab9 100644
3+
--- a/lib/parse.d.mts
4+
+++ b/lib/parse.d.mts
5+
@@ -1,4 +1,4 @@
6+
-declare class Url {
7+
+declare class _Url {
8+
protocol: string;
9+
slashes: string;
10+
auth: string;
11+
@@ -14,5 +14,7 @@ declare class Url {
12+
parseHost(host: string): void;
13+
}
14+
15+
+type Url = _Url;
16+
+
17+
export default function parse(url: string | Url, slashesDenoteHost?: boolean): Url;
18+
-export type { Url };
19+
+export { Url };

pnpm-lock.yaml

+7-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)