@studiometa/js-toolkit
Version:
A set of useful little bits of JavaScript to boost your project! 🚀
19 lines (18 loc) • 676 B
TypeScript
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;
}
/**
* IntersectionObserver decoration.
* @link https://js-toolkit.studiometa.dev/api/decorators/withMountOnMediaQuery.html
*/
export declare function withMountOnMediaQuery<S extends Base = Base>(BaseClass: typeof Base, media: any): BaseDecorator<withMountOnMediaQueryInterface, S, withMountOnMediaQueryProps>;