Skip to content

Commit

Permalink
feat: make each type of cmds optional in manifest
Browse files Browse the repository at this point in the history
There may be more types of cmds in the future, this makes backward compatibility easier.
  • Loading branch information
HuakunShen committed Jan 5, 2025
1 parent 04eea03 commit bdae999
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/api/src/models/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ export const KunkunExtManifest = v.object({
"Permissions Declared by the extension. e.g. clipboard-all. Not declared APIs will be blocked."
),
demoImages: v.array(v.string("Demo images for the extension")),
customUiCmds: v.array(CustomUiCmd, "Custom UI Commands"),
templateUiCmds: v.array(TemplateUiCmd, "Template UI Commands"),
headlessCmds: v.array(HeadlessCmd, "Headless Commands")
customUiCmds: v.optional(v.array(CustomUiCmd, "Custom UI Commands")),
templateUiCmds: v.optional(v.array(TemplateUiCmd, "Template UI Commands")),
headlessCmds: v.optional(v.array(HeadlessCmd, "Headless Commands"))
})
export type KunkunExtManifest = v.InferOutput<typeof KunkunExtManifest>

Expand Down

0 comments on commit bdae999

Please sign in to comment.