MOBILE-3213 core: Run script that removes types from JSDoc
parent
b427c8a52a
commit
8d30c0be97
|
@ -327,7 +327,7 @@ export class AddonBlockMyOverviewComponent extends CoreBlockBaseComponent implem
|
|||
/**
|
||||
* Set selected courses filter.
|
||||
*
|
||||
* @param {string} filter Filter name to set.
|
||||
* @param filter Filter name to set.
|
||||
*/
|
||||
protected setCourseFilter(filter: string): void {
|
||||
this.selectedFilter = filter;
|
||||
|
|
|
@ -437,8 +437,6 @@ export class AddonCalendarListPage implements OnDestroy {
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
protected filterEvents(): void {
|
||||
this.filteredEvents = this.calendarHelper.getFilteredEvents(this.events, this.filter, this.categories);
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ export class AddonModDataFieldLatlongComponent extends AddonModDataFieldPluginCo
|
|||
/**
|
||||
* Get user location.
|
||||
*
|
||||
* @param {Event} $event The event.
|
||||
* @param $event The event.
|
||||
*/
|
||||
getLocation(event: Event): void {
|
||||
event.preventDefault();
|
||||
|
|
|
@ -1903,7 +1903,7 @@ export class CoreSite {
|
|||
* Get a certain cache expiration delay.
|
||||
*
|
||||
* @param updateFrequency The update frequency of the entry.
|
||||
* @return {number} Expiration delay.
|
||||
* @return Expiration delay.
|
||||
*/
|
||||
getExpirationDelay(updateFrequency?: number): number {
|
||||
let expirationDelay = this.UPDATE_FREQUENCIES[updateFrequency] || this.UPDATE_FREQUENCIES[CoreSite.FREQUENCY_USUALLY];
|
||||
|
|
|
@ -65,7 +65,7 @@ export class CoreFilterDefaultHandler implements CoreFilterHandler {
|
|||
/**
|
||||
* Whether or not the handler is enabled on a site level.
|
||||
*
|
||||
* @return {boolean|Promise<boolean>} Whether or not the handler is enabled on a site level.
|
||||
* @return Whether or not the handler is enabled on a site level.
|
||||
*/
|
||||
isEnabled(): boolean | Promise<boolean> {
|
||||
return true;
|
||||
|
|
|
@ -236,7 +236,7 @@ export class CoreFilterDelegate extends CoreDelegate {
|
|||
* @param filter Filter to check.
|
||||
* @param options Options passed to the filters.
|
||||
* @param site Site. If not defined, current site.
|
||||
* @return {Promise<boolean>} Promise resolved with true: whether the filter should be applied.
|
||||
* @return Promise resolved with true: whether the filter should be applied.
|
||||
*/
|
||||
shouldBeApplied(filters: CoreFilterFilter[], options: CoreFilterFormatTextOptions, site?: CoreSite): Promise<boolean> {
|
||||
// Wait for filters to be initialized.
|
||||
|
|
|
@ -66,7 +66,7 @@ export class CoreH5PPluginFileHandler implements CorePluginFileHandler {
|
|||
* CoreFilepoolProvider.extractDownloadableFilesFromHtml.
|
||||
*
|
||||
* @param container Container where to get the URLs from.
|
||||
* @return {string[]} List of URLs.
|
||||
* @return List of URLs.
|
||||
*/
|
||||
getDownloadableFilesFromHTML(container: HTMLElement): string[] {
|
||||
const iframes = <HTMLIFrameElement[]> Array.from(container.querySelectorAll('iframe.h5p-iframe'));
|
||||
|
|
|
@ -164,7 +164,7 @@ export class CoreAppProvider {
|
|||
/**
|
||||
* Returns whether the user agent is controlled by automation. I.e. Behat testing.
|
||||
*
|
||||
* @return {boolean} True if the user agent is controlled by automation, false otherwise.
|
||||
* @return True if the user agent is controlled by automation, false otherwise.
|
||||
*/
|
||||
static isAutomated(): boolean {
|
||||
return !!navigator.webdriver;
|
||||
|
|
|
@ -71,7 +71,7 @@ export interface CorePluginFileHandler extends CoreDelegateHandler {
|
|||
* CoreFilepoolProvider.extractDownloadableFilesFromHtml.
|
||||
*
|
||||
* @param container Container where to get the URLs from.
|
||||
* @return {string[]} List of URLs.
|
||||
* @return List of URLs.
|
||||
*/
|
||||
getDownloadableFilesFromHTML?(container: HTMLElement): string[];
|
||||
|
||||
|
|
|
@ -78,8 +78,8 @@ export class CoreTextUtilsProvider {
|
|||
/**
|
||||
* Add ending slash from a path or URL.
|
||||
*
|
||||
* @param {string} text Text to treat.
|
||||
* @return {string} Treated text.
|
||||
* @param text Text to treat.
|
||||
* @return Treated text.
|
||||
*/
|
||||
addEndingSlash(text: string): string {
|
||||
if (!text) {
|
||||
|
|
Loading…
Reference in New Issue