( store: Record<string, V | undefined> )
| 62 | } |
| 63 | |
| 64 | function createFastMemoizeCache<V>( |
| 65 | store: Record<string, V | undefined> |
| 66 | ): Cache<string, V> { |
| 67 | return { |
| 68 | create() { |
| 69 | return { |
| 70 | get(key) { |
| 71 | return store[key] |
| 72 | }, |
| 73 | set(key, value) { |
| 74 | store[key] = value |
| 75 | }, |
| 76 | } |
| 77 | }, |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | function createDefaultFormatters( |
| 82 | cache: FormatterCache = { |
no outgoing calls
no test coverage detected