mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-05-30 15:30:09 +00:00
chore(docs): cleanup patches, update typedoc (#462)
This commit is contained in:
1966
website/package-lock.json
generated
1966
website/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -24,8 +24,7 @@
|
||||
"format": "prettier --write \"{src,static,scripts,docs}/**/*.{js,jsx,ts,tsx,css,scss,json,md,mdx,yml}\"",
|
||||
"format:check": "prettier --check \"{src,static,scripts,docs}/**/*.{js,jsx,ts,tsx,css,scss,json,md,mdx,yml}\"",
|
||||
"test:lint": "run-s lint:no-fix format:check lint:md-no-fix",
|
||||
"vercel-build": "npm run build",
|
||||
"postinstall": "echo TEMPORARY PATCHES FOR ISSUES && patch-package"
|
||||
"vercel-build": "npm run build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@docusaurus/core": "2.0.0-beta.20",
|
||||
@@ -41,7 +40,6 @@
|
||||
"clsx": "^1.1.1",
|
||||
"docusaurus-plugin-sass": "^0.2.2",
|
||||
"docusaurus-plugin-typedoc-api": "^1.11.0",
|
||||
"patch-package": "^6.4.7",
|
||||
"prism-react-renderer": "^1.3.3",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
@@ -49,32 +47,32 @@
|
||||
"swr": "^1.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^17.0.0",
|
||||
"@commitlint/cli": "^17.0.1",
|
||||
"@commitlint/config-conventional": "^17.0.0",
|
||||
"@docusaurus/module-type-aliases": "2.0.0-beta.20",
|
||||
"@sapphire/prettier-config": "^1.4.3",
|
||||
"@sapphire/ts-config": "^3.3.4",
|
||||
"@types/node": "^17.0.35",
|
||||
"@types/node": "^17.0.36",
|
||||
"@types/react": "^18.0.9",
|
||||
"@types/react-dom": "^18.0.4",
|
||||
"@typescript-eslint/eslint-plugin": "^5.25.0",
|
||||
"@typescript-eslint/parser": "^5.25.0",
|
||||
"@types/react-dom": "^18.0.5",
|
||||
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
||||
"@typescript-eslint/parser": "^5.27.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"cz-conventional-changelog": "^3.3.0",
|
||||
"eslint": "^8.16.0",
|
||||
"lint-staged": "^12.4.1",
|
||||
"lint-staged": "^12.4.3",
|
||||
"markdownlint": "^0.25.1",
|
||||
"markdownlint-cli2": "^0.4.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "^2.6.2",
|
||||
"pretty-quick": "^3.1.3",
|
||||
"replace-in-file": "^6.3.2",
|
||||
"replace-in-file": "^6.3.5",
|
||||
"rimraf": "^3.0.2",
|
||||
"typedoc": "^0.22.15",
|
||||
"typedoc": "^0.22.16",
|
||||
"typedoc-plugin-djs-links": "^1.0.4",
|
||||
"typedoc-plugin-markdown": "^3.12.1",
|
||||
"typedoc-plugin-mdn-links": "^1.0.6",
|
||||
"typescript": "^4.6.4"
|
||||
"typescript": "^4.7.2"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
diff --git a/node_modules/docusaurus-plugin-typedoc-api/lib/components/MemberDeclaration.js b/node_modules/docusaurus-plugin-typedoc-api/lib/components/MemberDeclaration.js
|
||||
index c42d124..ba78fb2 100644
|
||||
--- a/node_modules/docusaurus-plugin-typedoc-api/lib/components/MemberDeclaration.js
|
||||
+++ b/node_modules/docusaurus-plugin-typedoc-api/lib/components/MemberDeclaration.js
|
||||
@@ -38,6 +38,15 @@ function MemberDeclaration({
|
||||
const minimal = useMinimalLayout.useMinimalLayout();
|
||||
const showTypes = reflection.typeParameter && reflection.typeParameter.length > 0;
|
||||
const showDeclaration = !minimal && ((_reflection$type = reflection.type) === null || _reflection$type === void 0 ? void 0 : _reflection$type.declaration);
|
||||
+
|
||||
+ if (!reflection.type) {
|
||||
+ // TEMPORARY: define type as literal
|
||||
+ reflection.type = {
|
||||
+ type: 'literal',
|
||||
+ value: typeof reflection.defaultValue !== 'undefined' ? reflection.defaultValue : 'unknown type',
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
||||
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
||||
className: "tsd-panel-content",
|
||||
Reference in New Issue
Block a user