@logux/client
Version:
Logux base components to build web client
15 lines (13 loc) • 317 B
TypeScript
import type { Client } from '../client/index.js'
/**
* Highlight tabs on synchronization errors.
*
* ```js
* import { attention } from '@logux/client'
* attention(client)
* ```
*
* @param client Observed Client instance.
* @returns Unbind listener.
*/
export function attention(client: Client): () => void