You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought that shouldn't matter. In any event, that should be an easy fix via search/replace.
The nullable thing is more tricky. Since there are about 600 places where ? is used, we need a small script that processes all core and addon files and moves ? at the beginning.
The regex for detecting the Strings in question should be something like {.*?\?}.
Description
I just want to highlight some minor things that are showing up as errors with my IDE (JetBrains Rider) with the new JSDoc annotations.
Primitive types shouldn't be capitalized:
{String}
should be{string}
{Boolean}
should be{boolean}
{Number}
should be{number}
{Any}
should be{any}
The question mark
?
to denote a nullable type should come before the type, not after.For example:
{MyType?}
should be{?MyType}
(see https://jsdoc.app/tags-type)Example of invalid JSDoc syntax in src/nodes/core/Node.js:
three.js/src/nodes/core/Node.js
Lines 101 to 108 in 8540d9f
Screenshot of IDE error (JetBrains Rider):
Version
173
The text was updated successfully, but these errors were encountered: