Update JSDOC

pull/74/head
MillenniumEarl 2021-03-04 10:47:35 +01:00
parent 0c01722c96
commit f611482a06
2 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,9 @@ export default class LatestSearchQuery implements IQuery {
return await fetchGETResponse(decoded);
}
/**
* Gets the value (in days) acceptable in the query starting from a generic date.
*/
public findNearestDate(d: Date): TDate {
// Find the difference between today and the passed date
const diff = this.dateDiffInDays(new Date(), d);

View File

@ -13,6 +13,7 @@ import ThreadSearchQuery from "../classes/query/thread-search-query.js";
/**
* Gets the URLs of the handiwork' threads that match the passed parameters.
*
* You *must* be logged.
* @param {ThreadSearchQuery} query
* Query used for the search