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
In #98656 we noticed that functions that are defined as const myVar = (params) => {...} are reported as myVar.$1 is missing comments.
Functions that do not require any params (const myVar = () => {...}) don't show such errors. We might need to fix our scripts/build_api_docs piece of logic to cover this use case.
Why using const + arrow function vs. function? Because it helps with the typing of the function. An example is React.FC definitions like the one below:
In #98656 we noticed that functions that are defined as
const myVar = (params) => {...}
are reported asmyVar.$1
is missing comments.Functions that do not require any params (
const myVar = () => {...}
) don't show such errors. We might need to fix ourscripts/build_api_docs
piece of logic to cover this use case.Why using const + arrow function vs. function? Because it helps with the typing of the function. An example is
React.FC
definitions like the one below:kibana/src/plugins/usage_collection/public/components/track_application_view/track_application_view.tsx
Lines 23 to 32 in 7eb733f
The text was updated successfully, but these errors were encountered: