Skip to content

Commit

Permalink
Fix tbdocs reporter errors
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Hinek <[email protected]>
  • Loading branch information
frankhinek committed Dec 4, 2023
1 parent 3ea3c04 commit 81af53e
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions packages/api/src/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class Record implements RecordModel {
* Returns the data of the current record as a `Blob`.
*
* @returns A promise that resolves to a Blob containing the record's data.
* @throws {Error} If the record data is not available or cannot be converted to a `Blob`.
* @throws If the record data is not available or cannot be converted to a `Blob`.
*
* @beta
*/
Expand All @@ -215,7 +215,7 @@ export class Record implements RecordModel {
* Returns the data of the current record as a `Uint8Array`.
*
* @returns A Promise that resolves to a `Uint8Array` containing the record's data bytes.
* @throws {Error} If the record data is not available or cannot be converted to a byte array.
* @throws If the record data is not available or cannot be converted to a byte array.
*
* @beta
*/
Expand All @@ -227,7 +227,7 @@ export class Record implements RecordModel {
* Parses the data of the current record as JSON and returns it as a JavaScript object.
*
* @returns A Promise that resolves to a JavaScript object parsed from the record's JSON data.
* @throws {Error} If the record data is not available, not in JSON format, or cannot be parsed.
* @throws If the record data is not available, not in JSON format, or cannot be parsed.
*
* @beta
*/
Expand All @@ -239,7 +239,7 @@ export class Record implements RecordModel {
* Returns the data of the current record as a `string`.
*
* @returns A promise that resolves to a `string` containing the record's text data.
* @throws {Error} If the record data is not available or cannot be converted to text.
* @throws If the record data is not available or cannot be converted to text.
*
* @beta
*/
Expand All @@ -251,7 +251,7 @@ export class Record implements RecordModel {
* Provides a `Readable` stream containing the record's data.
*
* @returns A promise that resolves to a Node.js `Readable` stream of the record's data.
* @throws {Error} If the record data is not available in-memory and cannot be fetched.
* @throws If the record data is not available in-memory and cannot be fetched.
*
* @beta
*/
Expand Down Expand Up @@ -451,9 +451,8 @@ export class Record implements RecordModel {
* @param options.target - The DID of the DWN to fetch the data from.

Check warning on line 451 in packages/api/src/record.ts

View workflow job for this annotation

GitHub Actions / tbdocs-reporter

docs: tsdoc-param-tag-with-invalid-name

The `@param` block should be followed by a valid parameter name: The identifier cannot non-word characters
* @param options.isRemote - Indicates whether the target DWN is a remote node.

Check warning on line 452 in packages/api/src/record.ts

View workflow job for this annotation

GitHub Actions / tbdocs-reporter

docs: tsdoc-param-tag-with-invalid-name

The `@param` block should be followed by a valid parameter name: The identifier cannot non-word characters
* @returns A Promise that resolves to a Node.js `Readable` stream of the record's data.
* @throws {Error} If there is an error while fetching or processing the data from the DWN.
* @throws If there is an error while fetching or processing the data from the DWN.
*
* @private
* @beta
*/
private async readRecordData({ target, isRemote }: { target: string, isRemote: boolean }) {
Expand Down Expand Up @@ -493,9 +492,8 @@ export class Record implements RecordModel {
* @param propertiesToMutate - An iterable of property names that are intended to be mutated.
* @param mutableDescriptorProperties - A set of property names that are allowed to be mutated.
*
* @throws {Error} If any of the properties in `propertiesToMutate` are not in `mutableDescriptorProperties`.
* @throws If any of the properties in `propertiesToMutate` are not in `mutableDescriptorProperties`.
*
* @private
* @beta
*/
private static verifyPermittedMutation(propertiesToMutate: Iterable<string>, mutableDescriptorProperties: Set<string>) {
Expand Down

0 comments on commit 81af53e

Please sign in to comment.