File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import { assert } from "@std/assert/assert" ;
2- import { memoize } from "@std/cache/memoize" ;
2+ import { MemoizationCacheResult , memoize } from "@std/cache/memoize" ;
33import { ArrayResult , ArrayResultError } from "../array_result.ts" ;
44import { Clearable , ClearableCacheSet , Lazy } from "../cache.ts" ;
55import { throwError } from "../misc.ts" ;
@@ -14,7 +14,7 @@ export class Parser<T> {
1414 constructor ( parser : ( src : string ) => ParserResult < T > ) {
1515 this . unmemoizedParser = parser ;
1616 if ( Parser . cache != null ) {
17- const cache = new Map ( ) ;
17+ const cache = new Map < string , MemoizationCacheResult < ParserResult < T > > > ( ) ;
1818 Parser . addToCache ( cache ) ;
1919 this . rawParser = memoize ( this . unmemoizedParser , { cache } ) ;
2020 } else {
You can’t perform that action at this time.
0 commit comments