Astral.Islands.Adapter (Astral v0.1.8)

Copy Markdown View Source

Supported client-side island framework adapters.

Summary

Functions

Returns all supported island adapters.

Returns the mount function exported by an adapter runtime.

Returns the TypeScript runtime asset path for an adapter.

Returns the virtual runtime module id for an adapter.

Returns true when the adapter is supported.

Types

t()

@type t() :: :vue | :svelte | :react | :solid

Functions

all()

@spec all() :: [t()]

Returns all supported island adapters.

mount_function(atom)

@spec mount_function(t()) :: String.t()

Returns the mount function exported by an adapter runtime.

runtime_asset(atom)

@spec runtime_asset(t()) :: String.t()

Returns the TypeScript runtime asset path for an adapter.

runtime_id(atom)

@spec runtime_id(t()) :: String.t()

Returns the virtual runtime module id for an adapter.

supported?(adapter)

@spec supported?(atom()) :: boolean()

Returns true when the adapter is supported.