Instruction file imported from casual-simulation/casualos (
.github/instructions/documentation.instructions.md). Copyright stays with the author.
JSDoc comments
- Use JSDoc comments to document functions, classes, and interfaces.
- Use
@paramto document function parameters. - Use
@returnsto document function return values. - (Required) Use
@dochashto specify the page that the documentation should be generated into.- The following hashes are available:
actions/aiactions/bot-filtersactions/bytesactions/cryptoactions/dataactions/debuggersactions/experimentalactions/loomactions/mathactions/modsactions/os/animationsactions/os/appactions/os/audioactions/os/barcodesactions/os/cameraactions/os/clipboardactions/os/eventactions/os/filesactions/os/geolocationactions/os/image-classificationactions/os/inputactions/os/ldrawactions/os/mediaactions/os/moderationactions/os/portalsactions/os/spacesactions/os/systemactions/os/recordsactions/os/remotesactions/os/roomsactions/os/timeactions/os/xractions/webtypes/aitypes/coretypes/debuggers/commontypes/debuggers/debuggertypes/debuggers/pausable-debuggertypes/errortypes/experimentaltypes/math/vectorstypes/math/rotationstypes/os/animationstypes/os/audiotypes/os/barcodestypes/os/cameratypes/os/clipboardtypes/os/eventtypes/os/filestypes/os/geolocationtypes/os/image-classificationtypes/os/inputtypes/os/mediatypes/os/moderationtypes/os/portalstypes/os/spacestypes/os/systemtypes/os/xrtypes/records/keytypes/records/datatypes/records/filestypes/records/eventstypes/records/rolestypes/records/policiestypes/records/extratypes/web
- The following hashes are available:
- (Required) Use
@docidis used to specify the ID of the function/class in the documentation. @docnameis used to specify the name that should be displayed in the documentation.- This is useful for functions/classes that are exported with a different name than the one used in the code.
- Use this for functions in
AuxLibrary.ts. For example, thetoast()function is exported asos.toast().
- Use
{@link}to link to other documentation entries.- Specify the
@docidof the entry you want to link to.
- Specify the
- Use
{@tag [tag]}to link to tags. - Use
{@tag @[listener]}to link to listen tags.