componentRegistry/types
Esta página aún no está disponible en tu idioma.
Interfaces
Section titled “Interfaces”AstroComponentProp
Section titled “AstroComponentProp”Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:23^
Represents a property of an Astro component.
Properties
Section titled “Properties”defaultValue?
Section titled “defaultValue?”readonly optional defaultValue: string;
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:28^
An optional default value for the property.
description?
Section titled “description?”readonly optional description: string;
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:27^
An optional description of the property.
jsDocTags?
Section titled “jsDocTags?”readonly optional jsDocTags: JSDocTag[];
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:29^
readonly name: string;
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:24^
The name of the property.
optional
Section titled “optional”readonly optional: boolean;
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:26^
Indicates whether the property is optional.
readonly type: string;
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:25^
The type of the property as a string.
AstroComponentProps
Section titled “AstroComponentProps”Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:38^
Represents the properties of an Astro component.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”readonly name: string;
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:39^
The unique name of the Astro component.
readonly props: readonly AstroComponentProp[];
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:40^
A readonly array of properties (AstroComponentProp
) associated with the component.
ComponentRegistryEntry
Section titled “ComponentRegistryEntry”Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:50^
Represents an entry in the component registry.
Extends the AstroComponentProps
interface to include additional metadata.
Extends
Section titled “Extends”Properties
Section titled “Properties”readonly name: string;
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:39^
The unique name of the Astro component.
Inherited from
Section titled “Inherited from”readonly props: readonly AstroComponentProp[];
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:40^
A readonly array of properties (AstroComponentProp
) associated with the component.
Inherited from
Section titled “Inherited from”safeName
Section titled “safeName”readonly safeName: string;
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:51^
A readonly string representing a safe, unique identifier for the component.
JSDocTag
Section titled “JSDocTag”Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:7^
Represents a JSDoc tag with its name and optional text content.
Properties
Section titled “Properties”optional name: string;
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:10^
tagName
Section titled “tagName”tagName: string;
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:8^
The name of the JSDoc tag (e.g., ‘param’, ‘returns’).
optional text: string;
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:9^
Optional text associated with the tag, such as a description or type.
optional type: string;
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:11^
PropValidationResult
Section titled “PropValidationResult”Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:60^
Represents the result of validating a set of properties.
Properties
Section titled “Properties”errors
Section titled “errors”readonly errors: readonly string[];
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:62^
A readonly array of error messages describing validation failures.
readonly valid: boolean;
Defined in: studiocms/packages/studiocms/src/componentRegistry/types.ts:61^
Indicates whether the validation was successful.