You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument of type '{ cache: { create(): { has(key: any): boolean; get(key: any): any; set(key: any, value: any): void; }; }; }' is not assignable to parameter of type 'Options<() => string>'.
Types of property 'cache' are incompatible.
Type '{ create(): { has(key: any): boolean; get(key: any): any; set(key: any, value: any): void; }; }' is not assignable to type 'Cache<string, string>'.
Object literal may only specify known properties, and 'create' does not exist in type 'Cache<string, string>'.ts(2345)
The text was updated successfully, but these errors were encountered:
Looks like there is the same bug for Flowtype either (see flow-typed repo, maybe automatic conversion from TS?). Documentation and source code use create.
In the typings, the
cache
is expecting an object that not includes aCreate
method. It's correct? What's the right way to use it with Typescript?The tslint error output:
The text was updated successfully, but these errors were encountered: