Aller au contenu

types

Ce contenu n’est pas encore disponible dans votre langue.

Defined in: studiocms/packages/studiocms/src/types.ts:76

optional content: string;

Defined in: studiocms/packages/studiocms/src/types.ts:77


Defined in: studiocms/packages/studiocms/src/types.ts:72

data: DeepPartial<CombinedPageData>;

Defined in: studiocms/packages/studiocms/src/types.ts:73

type ConfigSetupOptions = {
messages: Messages;
opts: StudioCMSOptions;
pkgName: string;
pkgVersion: string;
};

Defined in: studiocms/packages/studiocms/src/types.ts:54

Options for setting up the configuration.

messages: Messages;

Defined in: studiocms/packages/studiocms/src/types.ts:58

The messages to be used.

opts: StudioCMSOptions;

Defined in: studiocms/packages/studiocms/src/types.ts:57

The options for StudioCMS.

pkgName: string;

Defined in: studiocms/packages/studiocms/src/types.ts:55

The name of the package.

pkgVersion: string;

Defined in: studiocms/packages/studiocms/src/types.ts:56

The version of the package.


type DeepPartial<T> = { [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P] };

Defined in: studiocms/packages/studiocms/src/types.ts:68

A utility type that recursively makes all properties of a given type T optional.

This is particularly useful for creating partial versions of deeply nested objects.

T

The type to be transformed into a deep partial.


type Messages = {
label: string;
logLevel: "info" | "warn" | "error" | "debug";
message: string;
}[];

Defined in: studiocms/packages/studiocms/src/types.ts:15

Represents an array of message objects. Each message object contains information about a log message.

label: string;
logLevel: "info" | "warn" | "error" | "debug";
message: string;

type Route = InjectedRoute & {
enabled: boolean;
};

Defined in: studiocms/packages/studiocms/src/types.ts:24

Represents a route object that can be used for a Array of routes for the Astro integration injectRoute() function.

enabled: boolean;

type Script = {
content: string;
enabled: boolean;
stage: InjectedScriptStage;
};

Defined in: studiocms/packages/studiocms/src/types.ts:29

Represents a script object that can be used for a Array of scripts for the Astro integration injectScript() function.

content: string;

Defined in: studiocms/packages/studiocms/src/types.ts:29

enabled: boolean;

Defined in: studiocms/packages/studiocms/src/types.ts:29

stage: InjectedScriptStage;

Defined in: studiocms/packages/studiocms/src/types.ts:29


type ServerStartOptions = {
messages: Messages;
pkgName: string;
pkgVersion: string;
verbose: boolean;
};

Defined in: studiocms/packages/studiocms/src/types.ts:39

Options for starting the server.

messages: Messages;

Defined in: studiocms/packages/studiocms/src/types.ts:43

The messages configuration.

pkgName: string;

Defined in: studiocms/packages/studiocms/src/types.ts:40

The name of the package.

pkgVersion: string;

Defined in: studiocms/packages/studiocms/src/types.ts:41

The version of the package.

verbose: boolean;

Defined in: studiocms/packages/studiocms/src/types.ts:42

Flag to enable verbose logging.