@dxtmisha/functional-basic
Version:
Core functional utility library for modern web development without framework dependencies
9 lines (8 loc) • 411 B
TypeScript
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
/**
* Returns window or element.
*
* Возвращает окно или элемент.
* @param element selectors for matching or an Element/ селекторов для сопоставления или Element
*/
export declare function getElementOrWindow<E extends ElementOrWindow>(element?: ElementOrString<E>): E | undefined;