fix: corrected JSDoc comments

This commit is contained in:
StevanFreeborn
2023-02-02 22:59:07 -06:00
parent 923cb27c33
commit 54b0668e4a
3 changed files with 17 additions and 14 deletions
+4
View File
@@ -110,6 +110,10 @@ export class ApiResponse<T> {
);
}
/**
* @method AsFieldType - Converts the ApiResponse to an ApiResponse<Field>.
* @returns {ApiResponse<Field>} - An ApiResponse<Field>.
*/
public AsFieldType(): ApiResponse<Field> {
const apiResponse = this as ApiResponse<any>;
+1 -2
View File
@@ -111,8 +111,7 @@ export class OnspringClient {
}
/**
* @method getFields - Gets a paged list of fields.
* @param {PagingRequest} pagingRequest - The paging request that will be used to get the fields.
* @method getFieldById - Gets a field by its id.
* @returns {Promise<ApiResponse<Field>>} - A promise that resolves to an ApiResponse of type Field.
*/
public async getFieldById(fieldId: number): Promise<ApiResponse<Field>> {