Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
awa-xima committed Nov 24, 2024
1 parent 098b01d commit fbbed42
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .yarn/patches/typedoc-patch-ab68564c32.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/dist/lib/converter/types.js b/dist/lib/converter/types.js
index cc8beef359a61cfc0e05c73db612eca27173e3aa..ef7d617034e1ef2975358c3290efdaf14a58dfec 100644
--- a/dist/lib/converter/types.js
+++ b/dist/lib/converter/types.js
@@ -238,8 +238,7 @@ const importType = {
kind: [typescript_1.default.SyntaxKind.ImportType],
convert(context, node) {
const name = node.qualifier?.getText() ?? "__module";
- const symbol = context.checker.getSymbolAtLocation(node);
- (0, assert_1.default)(symbol, "Missing symbol when converting import type node");
+ const symbol = context.expectSymbolAtLocation(node.qualifier || node);
return models_1.ReferenceType.createSymbolReference(context.resolveAliasedSymbol(symbol), context, name);
},
convertType(context, type) {
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@types/node": "22.9.0",
"esbuild": "0.24.0",
"type-fest": "4.26.1",
"typedoc": "patch:typedoc@npm%3A0.26.11#~/.yarn/patches/typedoc-npm-0.26.11-24fa09b154.patch",
"typedoc": "patch:typedoc@patch%3Atypedoc@npm%253A0.26.11%23~/.yarn/patches/typedoc-npm-0.26.11-24fa09b154.patch%3A%3Aversion=0.26.11&hash=705b3b#~/.yarn/patches/typedoc-patch-ab68564c32.patch",
"typedoc-plugin-dt-links": "1.0.2",
"typedoc-plugin-mdn-links": "3.3.7",
"typedoc-plugin-merge-modules": "6.0.3",
Expand Down
21 changes: 19 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ __metadata:
moment: "npm:2.30.1"
moment-timezone: "npm:0.5.46"
type-fest: "npm:4.26.1"
typedoc: "patch:typedoc@npm%3A0.26.11#~/.yarn/patches/typedoc-npm-0.26.11-24fa09b154.patch"
typedoc: "patch:typedoc@patch%3Atypedoc@npm%253A0.26.11%23~/.yarn/patches/typedoc-npm-0.26.11-24fa09b154.patch%3A%3Aversion=0.26.11&hash=705b3b#~/.yarn/patches/typedoc-patch-ab68564c32.patch"
typedoc-plugin-dt-links: "npm:1.0.2"
typedoc-plugin-mdn-links: "npm:3.3.7"
typedoc-plugin-merge-modules: "npm:6.0.3"
Expand Down Expand Up @@ -877,7 +877,7 @@ __metadata:
languageName: node
linkType: hard

"typedoc@patch:typedoc@npm%3A0.26.11#~/.yarn/patches/typedoc-npm-0.26.11-24fa09b154.patch":
"typedoc@patch:typedoc@npm%3A0.26.11#~/.yarn/patches/typedoc-npm-0.26.11-24fa09b154.patch::version=0.26.11&hash=705b3b":
version: 0.26.11
resolution: "typedoc@patch:typedoc@npm%3A0.26.11#~/.yarn/patches/typedoc-npm-0.26.11-24fa09b154.patch::version=0.26.11&hash=705b3b"
dependencies:
Expand All @@ -894,6 +894,23 @@ __metadata:
languageName: node
linkType: hard

"typedoc@patch:typedoc@patch%3Atypedoc@npm%253A0.26.11%23~/.yarn/patches/typedoc-npm-0.26.11-24fa09b154.patch%3A%3Aversion=0.26.11&hash=705b3b#~/.yarn/patches/typedoc-patch-ab68564c32.patch":
version: 0.26.11
resolution: "typedoc@patch:typedoc@patch%3Atypedoc@npm%253A0.26.11%23~/.yarn/patches/typedoc-npm-0.26.11-24fa09b154.patch%3A%3Aversion=0.26.11&hash=705b3b#~/.yarn/patches/typedoc-patch-ab68564c32.patch::version=0.26.11&hash=1bb1fa"
dependencies:
lunr: "npm:^2.3.9"
markdown-it: "npm:^14.1.0"
minimatch: "npm:^9.0.5"
shiki: "npm:^1.16.2"
yaml: "npm:^2.5.1"
peerDependencies:
typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x
bin:
typedoc: bin/typedoc
checksum: 10c0/6c4721c975fb5a9276f41fba1c78751775dfc58279d6cd6fa4047756a8f5929fdd0b0b3bbd119b785d6eb8ee7d21f3b861f56b316f216d7df168c8e8cecba0df
languageName: node
linkType: hard

"typescript@npm:5.6.3":
version: 5.6.3
resolution: "typescript@npm:5.6.3"
Expand Down

0 comments on commit fbbed42

Please sign in to comment.