Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid error from tsc #9997

Merged
merged 1 commit into from Sep 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/ol/functions.js
Expand Up @@ -32,10 +32,9 @@ export function VOID() {}
* returned function is called twice in a row with the same arguments and the same
* this object, it will return the value from the first call in the second call.
*
* @param {function(...any): ReturnType} fn The function to memoize.
* @return {function(...any): ReturnType} The memoized function.
* @template ReturnType
* @template ThisType
* @param {function(this:ThisType, ...any):ReturnType} fn The function to memoize.
* @return {function(this:ThisType, ...any):ReturnType} The memoized function.
*/
export function memoizeOne(fn) {
let called = false;
Expand Down