box-overflow-core
Version:
Headless UI for automatically collapsing boxes when overflow.
15 lines (14 loc) • 506 B
text/typescript
/**
* @author shunzi <tobyzsj@gmail.com>
* @date 2024-03-26 10:40:03
*/
import type * as CSS from 'csstype';
export declare enum ObserverType {
Resize = 0,
Mutation = 1
}
export type ResizeHandler = (ele: HTMLElement, entry: ResizeObserverEntry) => void;
export type MutationHandler = (mutation: MutationRecord) => void;
export type SetRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
export interface CSSProperties extends CSS.Properties<string | number> {
}