From 5fb25a253e2d384b90d35fb457ba20de4c8f6c99 Mon Sep 17 00:00:00 2001 From: Joan Xie Date: Sat, 1 Nov 2025 15:46:37 -0700 Subject: [PATCH] add McpbManifestAny type --- package.json | 2 +- src/types.ts | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 8749e20..77f437a 100644 --- a/package.json +++ b/package.json @@ -99,4 +99,4 @@ "@babel/parser": "7.27.3" }, "packageManager": "yarn@4.10.3+sha512.c38cafb5c7bb273f3926d04e55e1d8c9dfa7d9c3ea1f36a4868fa028b9e5f72298f0b7f401ad5eb921749eb012eb1c3bb74bf7503df3ee43fd600d14a018266f" -} \ No newline at end of file +} diff --git a/src/types.ts b/src/types.ts index 9fb510f..44997e4 100644 --- a/src/types.ts +++ b/src/types.ts @@ -47,18 +47,22 @@ export type McpbUserConfigurationOption = z.infer< export type McpbUserConfigValues = z.infer; -/** - * McpbManifest type that accepts any supported manifest version - * This is the default manifest type that should be used for maximum compatibility. - */ -export type McpbManifest = z.infer; - /** * McpbManifest type for the latest manifest version only * Use this when you specifically need the latest version. */ export type McpbManifestLatest = z.infer; +/** + * Alias for McpbManifestLatest for backwards compatibility. + */ +export type McpbManifest = McpbManifestLatest; + +/** + * McpbManifest type representing the union of all manifest versions + */ +export type McpbManifestAny = z.infer;; + /** * Information about a MCPB package signature */