@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Injectable service that resolves adapter keys to TextAdapter instances.

    Consumers can look up registered adapters by key or list all available registrations for building dynamic UIs (e.g. a dropdown of adapter choices).

    const registry = inject(TextAdapterRegistry);
    const adapter = registry.create('email'); // TextAdapter | undefined
    const all = registry.entries(); // Map<string, TextAdapterRegistration>
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Create an adapter instance by key.

      Parameters

      • key: string

      Returns TextAdapter | undefined

      A new adapter, or undefined if the key is not registered.

    • Returns true if an adapter with the given key is registered.

      Parameters

      • key: string

      Returns boolean

    • Returns all registered keys.

      Returns IterableIterator<string>