@embrace-io/web-sdk
Version:
31 lines • 949 B
text/typescript
//#region src/common/types.d.ts
interface VisibilityStateDocument {
visibilityState: DocumentVisibilityState;
hasFocus: () => boolean;
readyState?: DocumentReadyState;
addEventListener?: (type: string, listener: EventListenerOrEventListenerObject, options?: AddEventListenerOptions | boolean) => void;
removeEventListener?: (type: string, listener: EventListenerOrEventListenerObject, options?: EventListenerOptions | boolean) => void;
}
interface NavigationHost {
navigation?: Navigation;
location: {
href: string;
pathname: string;
};
}
interface URLDocument {
URL: string;
}
interface PathnameDocument {
pathname: string;
}
interface TitleDocument {
title: string;
}
interface AttributeScrubber {
key: string;
scrub: (value: string) => string;
}
//#endregion
export { AttributeScrubber, NavigationHost, PathnameDocument, TitleDocument, URLDocument, VisibilityStateDocument };
//# sourceMappingURL=types.d.cts.map