Files
NapCatQQ/.pnpm-store/v3/files/6d/09a834506b7d44e4e15a9514558e9615fa5d884da93b0ceadc4aeb2941fe75b10276c7d21f8ce637d6ee5d8e267f64c3e296add92b54f496a110afb928c1c4
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

41 lines
1.1 KiB
Plaintext

import { DOMProps, AriaLabelingProps } from '@react-types/shared';
interface Options {
/**
* If the filter should be enabled.
*/
enabled?: boolean;
/**
* If labelling associated aria properties should be included in the filter.
*/
labelable?: boolean;
/**
* A Set of other property names that should be included in the filter.
*/
propNames?: Set<string>;
/**
* A Set of other property names that should be removed from the filter.
*/
omitPropNames?: Set<string>;
/**
* A Set of event names that should be excluded from the filter.
*/
omitEventNames?: Set<string>;
/**
* Whether to omit data-* props.
*/
omitDataProps?: boolean;
/**
* Whether to omit event props.
*/
omitEventProps?: boolean;
}
/**
* Filters out all props that aren't valid DOM props or defined via override prop obj.
* @param props - The component props to be filtered.
* @param opts - Props to override.
*/
declare function filterDOMProps(props: DOMProps & AriaLabelingProps, opts?: Options): DOMProps & AriaLabelingProps;
export { filterDOMProps };