Skip to content

HostExtension

interface HostExtension<M extends ExtensionMemberMap = Record<never, never>>

Descriptor produced by defineHostExtension and passed to the FlareHost constructor to opt a host into the extension. Its install runs once at host construction, performs the extension’s composition (services/config/routes via the HostExtensionContext), and returns the map of members to install onto the host. The member map type M is carried as a type parameter so the constructor types host.<member> for every member directly from the extensions array.

Handed to you by the framework; see Host extensions.

install(ctx: HostExtensionContext): M

ctx HostExtensionContext

returns M

Learn: Host extensions

Last updated: