
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@types/tti-polyfill
Advanced tools
TypeScript definitions for tti-polyfill
npm install --save @types/tti-polyfill
This package contains type definitions for tti-polyfill (https://github.com/GoogleChrome/tti-polyfill#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tti-polyfill.
/*~ If this module is a UMD module that exposes a global variable 'myLib' when
*~ loaded outside a module loader environment, declare that global here.
*~ Otherwise, delete this declaration.
*/
export as namespace ttiPolyfill;
/**
* Returns a promise that resolves to the first consistently interactive time
* (in milliseconds) or null if the browser doesn't support the features
* required for detection.
* ```
* ttiPolyfill.getFirstConsistentlyInteractive(opts).then((tti) => {
* // Use `tti` value in some way.
* });
* ```
* @param opts Configuration options for
* the polyfill
* @return a promise that resolves to TTI
*/
export function getFirstConsistentlyInteractive(opts?: GetFirstConsistentlyInteractiveOpts): Promise<number | null>;
export interface GetFirstConsistentlyInteractiveOpts {
/**
* When true (the default), a mutation observer is used to detect when added
* DOM elements will create additional network requests. This can be
* disabled to improve performance in cases where you know no additional
* request-creating DOM elements will be added.
*/
useMutationObserver?: boolean | undefined;
/**
* The lower bound to start forward-searching for the quite window. If no value is set, the default is after the
* DOMContentLoaded event.
*/
minValue?: number | null | undefined;
}
These definitions were written by Patrick Weygand.
FAQs
TypeScript definitions for tti-polyfill
The npm package @types/tti-polyfill receives a total of 4,874 weekly downloads. As such, @types/tti-polyfill popularity was classified as popular.
We found that @types/tti-polyfill demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.