Open pixelzoom opened 2 years ago
I was surprised that the lint error at line 189 (above) went away when https://github.com/phetsims/chipper/issues/1338 was closed by @zepumph.
VoicingResponse is defined as:
export type VoicingResponse = ResponseCreator | ResolvedResponse;
which evaluates to:
TReadOnlyProperty<string> | (() => ResolvedResponse) | string | number | null
It would seem that () => ResolvedResponse
does not have a useful toString
, so I'm not sure how line 189 above works when row.readingBlockContent
is a function.
189 readingBlockNameResponse += `${row.readingBlockContent} `;
Re this lint rule: https://github.com/phetsims/chipper/issues/1338
It exposed a problem in KeyboardHelpSection.ts. Relevant code:
Line 189 in the above block of code is suspect:
row.readingBlockContent
is of typeVoicingResponse | null
, andVoicingResponse
does not implementtoString
. So will currently added either "[object Object]" or "null" toreadingBlockNameResponse
, both of which would seem to be a serious problem.Assigning to the author @jessegreenberg. High priority please, so that we can wrap up https://github.com/phetsims/chipper/issues/1338.