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

7 lines
407 B
Plaintext

import type { RefObject } from 'react';
type TargetValue<T> = T | undefined | null;
type TargetType = HTMLElement | Element | Window | Document;
export type BasicTarget<T extends TargetType = Element> = (() => TargetValue<T>) | TargetValue<T> | RefObject<TargetValue<T>>;
export declare function getTargetElement<T extends TargetType>(target: BasicTarget<T>, defaultElement?: T): TargetValue<T>;
export {};