File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,12 @@ export interface ArtifactCacheTemplate {
4747 * return the actual data object rather than the request. There are two options:
4848 * 1. "json": returns equivalent to `fetch(url).json()`
4949 * 2. "arraybuffer": returns equivalent to `fetch(url).arraybuffer()`
50+ * @param signal: An optional AbortSignal allowing user to abort the fetching before its completion.
5051 * @return The data object (i.e. users do not need to call `.json()` or `.arraybuffer()`).
5152 *
5253 * @note This is an async function.
5354 */
54- fetchWithCache ( url : string , storetype ?: string ) : Promise < any > ;
55+ fetchWithCache ( url : string , storetype ?: string , signal ?: AbortSignal ) : Promise < any > ;
5556
5657 /**
5758 * Fetch data from url and add into cache. If already exists in cache, should return instantly.
You can’t perform that action at this time.
0 commit comments