-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add JSDoc for some exports @W-13278716 #4014
Conversation
It has no top-level exports, easy!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic work.
@@ -85,6 +93,13 @@ export function generateCompilerError( | |||
return error; | |||
} | |||
|
|||
/** | |||
* Validates that the provided condition is truthy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Validates that the provided condition is truthy. | |
* Validates that the provided condition is true. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function checks for truthiness, not for === true
, so I think "truthy"/"falsy" are more accurate here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine, I just saw that the type was boolean
so we would only get either true
or false
* @param condition Condition to check. | ||
* @param errorInfo The object holding the error metadata. | ||
* @param args Values used to fill the error message template. | ||
* @throws Throws a compiler error if the provided condition is falsy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @throws Throws a compiler error if the provided condition is falsy. | |
* @throws Throws a compiler error if the provided condition is false. |
Co-authored-by: Eugene Kashida <[email protected]>
* chore: add temp file for tracking all exports * docs(shared): add jsdoc for language features * chore: missed an export * docs(exports): add jsdoc for @lwc/shared language features * style: add eslint-plugin-jsdoc * chore: eslint-plugin-jsdoc auto fixes * chore(linter): manual fixes for jsdoc rules * chore: simplify env config for test files * style(jsdoc): enforce documenting yields * docs: include @param in all jsdocs, but not descriptions (yet) * docs(exports): fully document all @lwc/shared language features * chore: remove temp file * chore: lint JSDoc in @lwc/shared * chore(eslint): suppress unimportant warnings * docs(rollup-plugin): add jsdoc for main export * fix: use JSDoc comment instead of plain multiline * docs(babel-plugin-component): polish JSDoc for main plugin export * chore: mark progress in .eslintrc * docs(wire-service): polish JSDoc for `register` * docs(errors): add JSDoc for @lwc/errors * docs(errors): polish JSDoc for @lwc/features * chore: mark @lwc/style-compiler as documented It has no top-level exports, easy! * docs(template-compiler): add bad JSDoc for top-level exports * chore(jsdoc): comment block is not jsdoc * chore: revert jsdoc changes to 3rd party files * chore(eslint): enforce stricter JSDoc rules * docs: improve JSDoc in root scripts * chore(eslint): auto-fixes for new JSDoc rules * chore(eslint): manual for new JSDoc rules * chore: fix bad merge * docs: manual JSDoc tweaks post-merge * docs(style-compiler): add JSDoc for top-level exports * chore: mark style-compiler as complete * docs(style-compiler): use correct name in README * revert: remove useless empty JSDoc * revert: don't JSDoc 3rd party * docs(module-resolver): add JSDoc for main export * revert: accidental JSDocification of __PURE__ annotations * Update packages/@lwc/errors/src/compiler/utils.ts Co-authored-by: Eugene Kashida <[email protected]> --------- Co-authored-by: Eugene Kashida <[email protected]>
Details
This time, with actual things to read!
Does this pull request introduce a breaking change?
Does this pull request introduce an observable change?
GUS work item