mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 05:45:51 +00:00
feat: 完成一大波类型修复, 虽然 any 很多
This commit is contained in:
@@ -188,7 +188,7 @@ export function getDeclaredMarketplaces(): Record<string, DeclaredMarketplace> {
|
||||
...implicit,
|
||||
...getAddDirExtraMarketplaces(),
|
||||
...(getInitialSettings().extraKnownMarketplaces ?? {}),
|
||||
}
|
||||
} as any
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
McpbManifest,
|
||||
McpbUserConfigurationOption,
|
||||
McpbManifestAny as McpbManifest,
|
||||
} from '@anthropic-ai/mcpb'
|
||||
type McpbUserConfigurationOption = any
|
||||
import axios from 'axios'
|
||||
import { createHash } from 'crypto'
|
||||
import { chmod, writeFile } from 'fs/promises'
|
||||
|
||||
@@ -166,7 +166,7 @@ export async function refreshActivePlugins(
|
||||
sum +
|
||||
Object.values(p.hooksConfig).reduce(
|
||||
(s, matchers) =>
|
||||
s + (matchers?.reduce((h, m) => h + m.hooks.length, 0) ?? 0),
|
||||
s + ((matchers as any)?.reduce((h: number, m: any) => h + m.hooks.length, 0) ?? 0),
|
||||
0,
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user