fixed some lint issues
This commit is contained in:
parent
8680b6ec20
commit
a700818a06
15 changed files with 1574 additions and 1319 deletions
4
libs/core/cache/src/namespaced-cache.ts
vendored
4
libs/core/cache/src/namespaced-cache.ts
vendored
|
|
@ -14,7 +14,7 @@ export class NamespacedCache implements CacheProvider {
|
|||
this.prefix = `${namespace}:`;
|
||||
}
|
||||
|
||||
async get<T = any>(key: string): Promise<T | null> {
|
||||
async get<T = unknown>(key: string): Promise<T | null> {
|
||||
return this.cache.get(`${this.prefix}${key}`);
|
||||
}
|
||||
|
||||
|
|
@ -77,7 +77,7 @@ export class NamespacedCache implements CacheProvider {
|
|||
export class CacheAdapter implements CacheProvider {
|
||||
constructor(private readonly cache: ICache) {}
|
||||
|
||||
async get<T = any>(key: string): Promise<T | null> {
|
||||
async get<T = unknown>(key: string): Promise<T | null> {
|
||||
return this.cache.get(key);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue