LibraryInitParams
Parameters for Library.init.
These are purely cosmetic values the host injects once at initialization, so the library itself carries no knowledge of who hosts it.
Import:
import type { LibraryInitParams } from '@mnaoumov/typescript-lib/library';Signature:
export interface LibraryInitParamsProperties
| Property | Type | Description |
|---|---|---|
| debugGuideUrl? | string | The URL of the guide explaining how to turn debug messages on and off, named in the library's debug messages. Without one, the messages name no guide. |
| debugNamespace? | string | The namespace the library's own debuggers live under. Defaults to DEFAULT_DEBUG_NAMESPACE. A host that publishes its own debug namespace to its users passes it here, so their filters keep matching. |
| debugPrefixNamespace | string | The namespace prefix prepended to the library's debug namespaces (e.g. ${pluginId}:). |
| shouldPrintStackTrace | boolean | Whether debug logging should append a rich DevTools stack trace. |