refactor: Tag class support in registerTag()

This commit is contained in:
Jun Yang
2022-11-27 14:04:01 +08:00
parent 1f6ce7c822
commit 92992689cd
145 changed files with 694 additions and 768 deletions
+2
View File
@@ -0,0 +1,2 @@
export * from './cache'
export * from './lru'
+1 -1
View File
@@ -10,7 +10,7 @@ class Node<T> {
}
export class LRU<T> implements Cache<T> {
private cache: { [key: string]: Node<T> } = {}
private cache: Record<string, Node<T>> = {}
private head: Node<T>
private tail: Node<T>