Skip to content

Commit 2a90214

Browse files
committed
Add typedocs
1 parent 59b417d commit 2a90214

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/app/core/data/base/base-data.service.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,11 @@ export class BaseDataService<T extends CacheableObject> implements HALDataServic
341341
}
342342
}
343343

344+
/**
345+
* Checks for the provided href whether a response is already cached
346+
* @param href$ The url for which to check whether there is a cached response.
347+
* Can be a string or an Observable<string>
348+
*/
344349
hasCachedResponse(href$: string | Observable<string>): Observable<boolean> {
345350
if (isNotEmpty(href$)) {
346351
if (typeof href$ === 'string') {
@@ -359,6 +364,11 @@ export class BaseDataService<T extends CacheableObject> implements HALDataServic
359364
throw new Error(`Can't check whether there is a cached response for an empty href$`);
360365
}
361366

367+
/**
368+
* Checks for the provided href whether an ERROR response is currently cached
369+
* @param href$ The url for which to check whether there is a cached ERROR response.
370+
* Can be a string or an Observable<string>
371+
*/
362372
hasCachedErrorResponse(href$: string | Observable<string>): Observable<boolean> {
363373
return this.hasCachedResponse(href$).pipe(
364374
switchMap((hasCachedResponse) => {

0 commit comments

Comments
 (0)