component:content
This commit is contained in:
parent
86983b62d0
commit
b3ef5683f0
1732
packages/commons/dist/component.d.ts
vendored
1732
packages/commons/dist/component.d.ts
vendored
File diff suppressed because it is too large
Load Diff
9
packages/commons/dist/component.js
vendored
9
packages/commons/dist/component.js
vendored
File diff suppressed because one or more lines are too long
@ -131,12 +131,16 @@ export const AuthorSchema = z.object({
|
||||
url: z.string(),
|
||||
})
|
||||
|
||||
|
||||
export const ContentSchema = z.object({
|
||||
body: z.string().optional(),
|
||||
features: z.string().optional(),
|
||||
highlights: z.string().optional(),
|
||||
specs: z.string().optional(),
|
||||
license: z.string().optional()
|
||||
license: z.string().optional(),
|
||||
resources: z.string().optional(),
|
||||
readme: z.string().optional(),
|
||||
shared: z.string().optional()
|
||||
})
|
||||
|
||||
export const VersionSchema = z.object({
|
||||
@ -252,7 +256,7 @@ export const ComponentConfigSchema = z.object({
|
||||
product_dimensions: z.string().optional(),
|
||||
production: ProductionSchema.optional(),
|
||||
score: z.number().optional()
|
||||
}).passthrough()
|
||||
}).merge(ContentSchema).passthrough()
|
||||
|
||||
export type IComponentConfig = z.infer<typeof ComponentConfigSchema>
|
||||
export type ICADNodeSchema = z.infer<typeof CADMetaSchema>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user