diff --git a/packages/cacher/src/adapters/memory.ts b/packages/cacher/src/adapters/memory.ts index 14e7ee9..d4d7ee4 100644 --- a/packages/cacher/src/adapters/memory.ts +++ b/packages/cacher/src/adapters/memory.ts @@ -1,4 +1,4 @@ -import { IAdapter, IAdapterIncrementOptions, IAdapterSetOptions } from './adapter'; +import type { IAdapter, IAdapterIncrementOptions, IAdapterSetOptions } from './adapter'; export interface IMapLike { get(key: K): V | undefined; diff --git a/packages/cacher/src/adapters/union.ts b/packages/cacher/src/adapters/union.ts index 29638ed..632cd6e 100644 --- a/packages/cacher/src/adapters/union.ts +++ b/packages/cacher/src/adapters/union.ts @@ -1,4 +1,4 @@ -import { +import type { IAdapter, IAdapterIncrementOptions, IAdapterSetOptions, @@ -74,6 +74,7 @@ export class UnionAdapter implements IAdapter { return firstItems.map(item => ( item !== undefined ? item + // biome-ignore lint/suspicious/noAssignInExpressions: this is simple : secondResult[index += 1] )); } diff --git a/packages/cacher/src/cacher.ts b/packages/cacher/src/cacher.ts index 4487717..b28056c 100644 --- a/packages/cacher/src/cacher.ts +++ b/packages/cacher/src/cacher.ts @@ -1,5 +1,5 @@ -import { IAdapter, MemoryAdapter } from './adapters'; -import { +import { type IAdapter, MemoryAdapter } from './adapters'; +import type { ICacherOptions, ICacherGetOptions, ICacherSetOptions, @@ -13,6 +13,7 @@ import { } from './types'; import { arraify } from './helpers'; +// biome-ignore lint/suspicious/noExplicitAny: by default any is simple for usage export class Cacher { protected adapter: IAdapter; diff --git a/packages/cacher/src/types.ts b/packages/cacher/src/types.ts index 12ac818..f9723a7 100644 --- a/packages/cacher/src/types.ts +++ b/packages/cacher/src/types.ts @@ -1,4 +1,4 @@ -import { IAdapter, IAdapterTouchOptions } from './adapters'; +import type { IAdapter, IAdapterTouchOptions } from './adapters'; export type AllowArray = T | T[]; diff --git a/packages/redis/src/redis.ts b/packages/redis/src/redis.ts index a2f26c6..73b2291 100644 --- a/packages/redis/src/redis.ts +++ b/packages/redis/src/redis.ts @@ -1,6 +1,6 @@ import IORedis from 'ioredis'; -import { +import type { IAdapter, IAdapterIncrementOptions, IAdapterSetOptions,