mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-19 21:24:37 +00:00
Update enum definition for type safety
- Changed enum to use 'as const' for better type inference - Ensured more robust handling of extension publish sources
This commit is contained in:
parent
dda783b9f6
commit
c86778bf3a
@ -5,7 +5,7 @@ import { ExtPackageJson, KunkunExtManifest } from "./manifest"
|
||||
export const ExtPublishSourceTypeEnum = {
|
||||
jsr: "jsr",
|
||||
npm: "npm"
|
||||
}
|
||||
} as const
|
||||
|
||||
export const ExtPublishMetadata = v.object({
|
||||
source: v.optional(v.string("Source of the extension (e.g. url to package)")),
|
||||
|
Loading…
x
Reference in New Issue
Block a user