This commit is contained in:
mindfulminun committed 2024-07-20 15:30:48 -05:00
1 parent 9cf0bf415b
commit 71323fc7fd
25 files changed
+186 -94

No files matched your search

+2 -2
View File
@@ -69,11 +69,11 @@ export class Memo<A extends unknown[], R extends unknown> {
return result
}
get ratio() {
get ratio(): number {
return this.hits / (this.hits + this.misses)
}
get fn() {
get fn(): (...args: A) => R {
return this.#memoHandler.bind(this)
}
}