Commit 369a519 1 parent 546b5fd commit 369a519 Copy full SHA for 369a519
File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -144,9 +144,13 @@ export interface Cache {
144
144
* Peek the Cache for the existing request data associated with
145
145
* a cacheable request
146
146
*
147
+ * This is effectively the reverse of `put` for a request in
148
+ * that it will return the the request, response, and content
149
+ * whereas `peek` will return just the `content`.
150
+ *
147
151
* @method peekRequest
148
152
* @param {StableDocumentIdentifier }
149
- * @return {StableDocumentIdentifier | null }
153
+ * @return {StructuredDocument<ResourceDocument> | null }
150
154
* @public
151
155
*/
152
156
peekRequest ( identifier : StableDocumentIdentifier ) : StructuredDocument < ResourceDocument > | null ;
Original file line number Diff line number Diff line change @@ -481,11 +481,15 @@ export default class JSONAPICache implements Cache {
481
481
482
482
/**
483
483
* Peek the Cache for the existing request data associated with
484
- * a cacheable request
484
+ * a cacheable request.
485
+ *
486
+ * This is effectively the reverse of `put` for a request in
487
+ * that it will return the the request, response, and content
488
+ * whereas `peek` will return just the `content`.
485
489
*
486
490
* @method peekRequest
487
491
* @param {StableDocumentIdentifier }
488
- * @return {StableDocumentIdentifier | null }
492
+ * @return {StructuredDocument<ResourceDocument> | null }
489
493
* @public
490
494
*/
491
495
peekRequest ( identifier : StableDocumentIdentifier ) : StructuredDocument < ResourceDocument > | null {
You can’t perform that action at this time.
0 commit comments