Home / Type/ Options Type — astro Architecture

Options Type — astro Architecture

Architecture documentation for the Options type/interface in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  fb400f4f_a9d3_4d9c_2f8d_954b1ca0a29c["Options"]
  55004deb_f74c_122b_7d00_ae962d3aa84d["index.ts"]
  fb400f4f_a9d3_4d9c_2f8d_954b1ca0a29c -->|defined in| 55004deb_f74c_122b_7d00_ae962d3aa84d
  style fb400f4f_a9d3_4d9c_2f8d_954b1ca0a29c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/alpinejs/src/index.ts lines 5–34

interface Options {
	/**
	 *	You can extend Alpine by setting this option to a root-relative import specifier (for example, `entrypoint: "/src/entrypoint"`).
	 *
	 * The default export of this file should be a function that accepts an Alpine instance prior to starting, allowing the use of custom directives, plugins and other customizations for advanced use cases.
	 *
	 * ```js
	 * // astro.config.mjs
	 * import { defineConfig } from 'astro/config';
	 * import alpine from '@astrojs/alpinejs';
	 *
	 * export default defineConfig({
	 *   // ...
	 *   integrations: [alpine({ entrypoint: '/src/entrypoint' })],
	 * });
	 * ```
	 *
	 * ```js
	 * // src/entrypoint.ts
	 * import type { Alpine } from 'alpinejs'
	 *
	 * export default (Alpine: Alpine) => {
	 *     Alpine.directive('foo', el => {
	 *         el.textContent = 'bar';
	 *     })
	 * }
	 * ```
	 */
	entrypoint?: string;
}

Frequently Asked Questions

What is the Options type?
Options is a type/interface in the astro codebase, defined in packages/integrations/alpinejs/src/index.ts.
Where is Options defined?
Options is defined in packages/integrations/alpinejs/src/index.ts at line 5.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free