UNPKG

@studiometa/js-toolkit

Version:

A set of useful little bits of JavaScript to boost your project! 🚀

19 lines (18 loc) • 612 B
import { BaseInterface, BaseDecorator } from '../Base/types.js'; import type { Base, BaseProps } from '../Base/index.js'; export interface withMountOnMediaQueryProps extends BaseProps { $options: { media: string; }; } export interface withMountOnMediaQueryInterface extends BaseInterface { /** * @private */ __matches: boolean; $mount(): this; } /** * IntersectionObserver decoration. */ export declare function withMountOnMediaQuery<S extends Base = Base>(BaseClass: typeof Base, media: any): BaseDecorator<withMountOnMediaQueryInterface, S, withMountOnMediaQueryProps>;