Skip to content

Commit

Permalink
docs update: Remove public access modifier from resetRequestCache met…
Browse files Browse the repository at this point in the history
…hod in CacheHandler class, it's not available in js file (only in typescript) (#74788)

### What?

During development I noticed that example of custom CacheHandler
contains expression that works only in TypeScript but the file is
declared as JS.

### Why?

To improve documentation DX, so other developers won't be surprised that
code they copied from official docs is not correct semantically.

### How?

Added small fix removing public accessor
  • Loading branch information
pavelee authored Jan 11, 2025
1 parent f813dd4 commit 8d0896a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ module.exports = class CacheHandler {

// If you want to have temporary in memory cache for a single request that is reset
// before the next request you can leverage this method
public resetRequestCache() {}
resetRequestCache() {}
}
```

Expand Down

0 comments on commit 8d0896a

Please sign in to comment.