14 lines
366 B
TypeScript
14 lines
366 B
TypeScript
import { ReportHandler } from './types.js';
|
|
interface FIDPolyfillCallback {
|
|
(value: number, event: Event): void;
|
|
}
|
|
interface FIDPolyfill {
|
|
onFirstInputDelay: (onReport: FIDPolyfillCallback) => void;
|
|
}
|
|
declare global {
|
|
interface Window {
|
|
perfMetrics: FIDPolyfill;
|
|
}
|
|
}
|
|
export declare const getFID: (onReport: ReportHandler) => void;
|
|
export {};
|