mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-20 05:29:17 +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 = {
|
export const ExtPublishSourceTypeEnum = {
|
||||||
jsr: "jsr",
|
jsr: "jsr",
|
||||||
npm: "npm"
|
npm: "npm"
|
||||||
}
|
} as const
|
||||||
|
|
||||||
export const ExtPublishMetadata = v.object({
|
export const ExtPublishMetadata = v.object({
|
||||||
source: v.optional(v.string("Source of the extension (e.g. url to package)")),
|
source: v.optional(v.string("Source of the extension (e.g. url to package)")),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user