-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add JSDoc for some exports @W-13278716 (#4014)
* 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]>
- Loading branch information
Showing
17 changed files
with
155 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
/* | ||
* Copyright (c) 2018, salesforce.com, inc. | ||
* Copyright (c) 2024, Salesforce, Inc. | ||
* All rights reserved. | ||
* SPDX-License-Identifier: MIT | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT | ||
*/ | ||
|
||
export function isObject(obj: any): obj is object { | ||
/** | ||
* Determines whether the given value is an object or null. | ||
* @param obj The value to check | ||
* @returns true if the value is an object or null | ||
* @example isObject(null) // true | ||
*/ | ||
export function isObject(obj: any): obj is object | null { | ||
return typeof obj === 'object'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.