//#SECTION selector exists export type OnSelectorOpts = SelectorOptsOne | SelectorOptsAll; type SelectorOptsOne = SelectorOptsBase & { /** Whether to use `querySelectorAll()` instead - default is false */ all?: false; /** Gets called whenever the selector was found in the DOM */ listener: (element: TElem) => void; }; type SelectorOptsAll = SelectorOptsBase & { /** Whether to use `querySelectorAll()` instead - default is false */ all: true; /** Gets called whenever the selector was found in the DOM */ listener: (elements: NodeListOf) => void; }; type SelectorOptsBase = { /** Whether to call the listener continuously instead of once - default is false */ continuous?: boolean; }; //#SECTION fetch advanced export type FetchAdvancedOpts = RequestInit & Partial<{ /** Timeout in milliseconds after which the fetch call will be canceled with an AbortController signal */ timeout: number; }>;