From a26a777436ba79c2871d6647280f244a3859ad72 Mon Sep 17 00:00:00 2001 From: machty Date: Tue, 6 Feb 2024 11:40:34 +0800 Subject: [PATCH] Fix JSDoc syntax --- .../src/-private/task-public-api.js | 3 ++- packages/test-app/package.json | 2 +- pnpm-lock.yaml | 21 +++++++++++-------- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/packages/ember-concurrency/src/-private/task-public-api.js b/packages/ember-concurrency/src/-private/task-public-api.js index 8f0b3d72e..2afc5e9e8 100644 --- a/packages/ember-concurrency/src/-private/task-public-api.js +++ b/packages/ember-concurrency/src/-private/task-public-api.js @@ -11,7 +11,8 @@ import { } from './task-decorators'; import { assert } from '@ember/debug'; -/** @typedef {import('./task-group').TaskGroup} TaskGroup */ +// eslint-disable-next-line no-unused-vars +import { TaskGroup } from './task-group'; /** * TODO: update docs to reflect both old and new ES6 styles diff --git a/packages/test-app/package.json b/packages/test-app/package.json index 10bee3e88..1fb995e90 100644 --- a/packages/test-app/package.json +++ b/packages/test-app/package.json @@ -81,7 +81,7 @@ "eslint-plugin-n": "^15.6.1", "eslint-plugin-qunit": "^7.3.4", "expect-type": "^0.15.0", - "jsdoc": "^3.6.6", + "jsdoc": "^4.0.0", "loader.js": "^4.7.0", "prember": "~2.0.0", "prettier": "^3.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 367204311..25130aef2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -265,8 +265,8 @@ importers: specifier: ^0.15.0 version: 0.15.0 jsdoc: - specifier: ^3.6.6 - version: 3.6.11 + specifier: ^4.0.0 + version: 4.0.2 loader.js: specifier: ^4.7.0 version: 4.7.0 @@ -1993,6 +1993,13 @@ packages: '@jridgewell/resolve-uri': 3.1.1 '@jridgewell/sourcemap-codec': 1.4.15 + /@jsdoc/salty@0.2.7: + resolution: {integrity: sha512-mh8LbS9d4Jq84KLw8pzho7XC2q2/IJGiJss3xwRoLD1A+EE16SjN4PfaG4jRCzKegTFLlN0Zd8SdUPE6XdoPFg==} + engines: {node: '>=v12.0.0'} + dependencies: + lodash: 4.17.21 + dev: true + /@lint-todo/utils@13.1.1: resolution: {integrity: sha512-F5z53uvRIF4dYfFfJP3a2Cqg+4P1dgJchJsFnsZE0eZp0LK8X7g2J0CsJHRgns+skpXOlM7n5vFGwkWCWj8qJg==} engines: {node: 12.* || >= 14} @@ -8216,12 +8223,13 @@ packages: xmlcreate: 2.0.4 dev: true - /jsdoc@3.6.11: - resolution: {integrity: sha512-8UCU0TYeIYD9KeLzEcAu2q8N/mx9O3phAGl32nmHlE0LpaJL71mMkP4d+QE5zWfNt50qheHtOZ0qoxVrsX5TUg==} + /jsdoc@4.0.2: + resolution: {integrity: sha512-e8cIg2z62InH7azBBi3EsSEqrKx+nUtAS5bBcYTSpZFA+vhNPyhv8PTFZ0WsjOPDj04/dOLlm08EDcQJDqaGQg==} engines: {node: '>=12.0.0'} hasBin: true dependencies: '@babel/parser': 7.23.9 + '@jsdoc/salty': 0.2.7 '@types/markdown-it': 12.2.3 bluebird: 3.7.2 catharsis: 0.9.0 @@ -8234,7 +8242,6 @@ packages: mkdirp: 1.0.4 requizzle: 0.2.4 strip-json-comments: 3.1.1 - taffydb: 2.6.2 underscore: 1.13.6 dev: true @@ -11097,10 +11104,6 @@ packages: strip-ansi: 6.0.1 dev: true - /taffydb@2.6.2: - resolution: {integrity: sha512-y3JaeRSplks6NYQuCOj3ZFMO3j60rTwbuKCvZxsAraGYH2epusatvZ0baZYA01WsGqJBq/Dl6vOrMUJqyMj8kA==} - dev: true - /tap-parser@7.0.0: resolution: {integrity: sha512-05G8/LrzqOOFvZhhAk32wsGiPZ1lfUrl+iV7+OkKgfofZxiceZWMHkKmow71YsyVQ8IvGBP2EjcIjE5gL4l5lA==} hasBin: true