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
## Description
This PR configures eslint-jsdoc-plugin so:
- JSDocs are consistent throughout codebase and jsdocs are consistent
with method/interface signature
- there is defined set of `@category` tag values to prevent typos and
generating additional sections in docs
- fixed few jsdocs manually
### Introduces a breaking change?
- [ ] Yes
- [x] No
### Type of change
- [ ] Bug fix (change which fixes an issue)
- [ ] New feature (change which adds functionality)
- [ ] Documentation update (improves or adds clarity to existing
documentation)
- [x] Other (chores, tests, code style improvements etc.)
### Tested on
- [ ] iOS
- [ ] Android
### Testing instructions
- try to break some jsdocs (e. g. remove `@returns` tag, set `@category`
to some value outside of values defined in `eslintrc.js`, change
`@param` tag so it does not match signature) and see if eslint catches
these errors.
- build and open docs locally and check out if api reference is valid
### Screenshots
<!-- Add screenshots here, if applicable -->
### Related issues
#831
### Checklist
- [x] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation accordingly
- [x] My changes generate no new warnings
### Additional notes
**NOTE:** for now I switched off required destructured params as that's
the convention we are mostly using, but we could move to destructured
params eventually.
---------
Co-authored-by: Mateusz Słuszniak <mateusz.sluszniak@swmansion.com>
Co-authored-by: Mateusz Sluszniak <56299341+msluszniak@users.noreply.github.com>
* This module provides functions to download and work with downloaded files stored in the application's document directory inside the `react-native-executorch/` directory.
104
102
* These utilities can help you manage your storage and clean up the downloaded files when they are no longer needed.
downloads: newMap<ResourceSource,DownloadResource>(),//map of currently downloading (or paused) files, if the download was started by .fetch() method.
110
107
111
108
/**
112
109
* Fetches resources (remote URLs, local files or embedded assets), downloads or stores them locally for use by React Native ExecuTorch.
113
-
*
114
110
* @param callback - Optional callback to track progress of all downloads, reported between 0 and 1.
115
111
* @param sources - Multiple resources that can be strings, asset references, or objects.
116
112
* @returns If the fetch was successful, it returns a promise which resolves to an array of local file paths for the downloaded/stored resources (without file:// prefix).
* @param sources - The resource identifiers used when calling fetch.
336
330
* @returns If the fetch was successful, it returns a promise which resolves to an array of local file paths for the downloaded resources (without file:// prefix).
337
331
* If the fetch was again interrupted by `pauseFetching` or `cancelFetching`, it returns a promise which resolves to `null`.
0 commit comments