Home > widget-integration > AssetFilesLoaderState

AssetFilesLoaderState type

Signature:

export type AssetFilesLoaderState = {
	themeCSS: {
		type: "stylesheet";
		element: HTMLLinkElement | null;
		status: "not-initialized" | "loading" | "loaded" | "error";
		url: string | null;
		module?: boolean;
	};
	settingsCSS: {
		type: "stylesheet";
		element: HTMLLinkElement | null;
		status: "not-initialized" | "loading" | "loaded" | "error";
		url: string | null;
		module?: boolean;
	};
	rtlCSS: {
		type: "stylesheet";
		element: HTMLLinkElement | null;
		status: "not-initialized" | "loading" | "loaded" | "error";
		url: string | null;
		module?: boolean;
	};
	customizedCSS: {
		type: "stylesheet";
		element: HTMLLinkElement | null;
		status: "not-initialized" | "loading" | "loaded" | "error";
		url: string | null;
		module?: boolean;
	};
	mainScript: {
		type: "script";
		element: HTMLScriptElement | null;
		status: "not-initialized" | "loading" | "loaded" | "error";
		url: string | null;
		module?: boolean;
	};
	customizedScript: {
		type: "script";
		element: HTMLScriptElement | null;
		status: "not-initialized" | "loading" | "loaded" | "error";
		url: string | null;
		module?: boolean;
	};
};