isDocumentTitleChangedEvent()
Home > @gooddata/sdk-pluggable-application-model > isDocumentTitleChangedEvent
isDocumentTitleChangedEvent() function
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Type guard for IDocumentTitleChangedEvent.
Signature:
export declare function isDocumentTitleChangedEvent(obj: unknown): obj is IDocumentTitleChangedEvent;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
obj |
unknown |
Returns:
obj is IDocumentTitleChangedEvent
Remarks
Validates the payload shape too (not just the type), so a malformed event — e.g. one emitted from JS or a mismatched remote module without the expected payload — is rejected rather than narrowed to a type whose later payload.pageTitle access would throw.