Skip to content

Commit

Permalink
BAU: ignore erroneous type syntax error
Browse files Browse the repository at this point in the history
This is valid typescript syntax:
https://www.typescriptlang.org/docs/handbook/2/functions.html

But the underlying parser that's being used for embedded types within
jsdoc does not yet support constructor call signatures within object
type syntax:

jsdoc-type-pratt-parser/jsdoc-type-pratt-parser#131
  • Loading branch information
hughfdjackson committed Jan 23, 2025
1 parent 306fd3a commit 3cfce41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/common/model/answer/answer-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export class AnswerModel {
}
}

/* eslint-disable jsdoc/valid-types */
/**
* @template Payload
* @typedef {{
Expand All @@ -85,6 +86,7 @@ export class AnswerModel {
* errorMessages(errors: AnswerErrors): ViewErrorMessage[];
* }} AnswerModelClass
*/
/* eslint-enable jsdoc/valid-types */

/**
* @typedef {{[key:string]: string | undefined}} RawPayload
Expand Down

0 comments on commit 3cfce41

Please sign in to comment.