fixed linting
This commit is contained in:
parent
5436509ed6
commit
48503ce8d1
2 changed files with 3 additions and 3 deletions
4
libs/cache/src/key-generator.ts
vendored
4
libs/cache/src/key-generator.ts
vendored
|
|
@ -17,7 +17,7 @@ export class CacheKeyGenerator {
|
||||||
/**
|
/**
|
||||||
* Generate cache key for backtest results
|
* Generate cache key for backtest results
|
||||||
*/
|
*/
|
||||||
static backtest(strategyName: string, params: Record<string, any>): string {
|
static backtest(strategyName: string, params: Record<string, unknown>): string {
|
||||||
const paramHash = this.hashObject(params);
|
const paramHash = this.hashObject(params);
|
||||||
return `backtest:${strategyName}:${paramHash}`;
|
return `backtest:${strategyName}:${paramHash}`;
|
||||||
}
|
}
|
||||||
|
|
@ -60,7 +60,7 @@ export class CacheKeyGenerator {
|
||||||
/**
|
/**
|
||||||
* Create a simple hash from object for cache keys
|
* Create a simple hash from object for cache keys
|
||||||
*/
|
*/
|
||||||
private static hashObject(obj: Record<string, any>): string {
|
private static hashObject(obj: Record<string, unknown>): string {
|
||||||
const str = JSON.stringify(obj, Object.keys(obj).sort());
|
const str = JSON.stringify(obj, Object.keys(obj).sort());
|
||||||
let hash = 0;
|
let hash = 0;
|
||||||
for (let i = 0; i < str.length; i++) {
|
for (let i = 0; i < str.length; i++) {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ export type DeepPartial<T> = T extends object
|
||||||
}
|
}
|
||||||
: T;
|
: T;
|
||||||
|
|
||||||
export type ConfigSchema = z.ZodSchema<any>;
|
export type ConfigSchema = z.ZodSchema<unknown>;
|
||||||
|
|
||||||
export interface ProviderConfig {
|
export interface ProviderConfig {
|
||||||
name: string;
|
name: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue