Fix lint errors in types.ts and remove any casts

- Use import type for VERSIONED_MANIFEST_SCHEMAS and DEFAULT_MANIFEST_VERSION
- Remove unnecessary any type annotations from test file
This commit is contained in:
Joan Xie 2025-11-03 15:57:20 -08:00
commit 21c9710584
No known key found for this signature in database

View file

@ -1,7 +1,8 @@
import type * as z from "zod";
import type { McpbManifestSchema as McpbManifestSchemaAny } from "./schemas/any.js";
import { VERSIONED_MANIFEST_SCHEMAS } from "./schemas/index.js";
import type { VERSIONED_MANIFEST_SCHEMAS } from "./schemas/index.js";
import type { DEFAULT_MANIFEST_VERSION } from "./shared/constants.js";
// Import schema types from the version matching DEFAULT_MANIFEST_VERSION
import type {
McpbManifestAuthorSchema,
@ -17,7 +18,6 @@ import type {
McpbUserConfigValuesSchema,
McpServerConfigSchema,
} from "./schemas/0.2.js";
import { DEFAULT_MANIFEST_VERSION } from "./shared/constants.js";
export type McpServerConfig = z.infer<typeof McpServerConfigSchema>;