New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/requestidlecallback

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/requestidlecallback - npm Package Compare versions

Comparing version 0.1.2 to 0.3.0

21

requestidlecallback/index.d.ts

@@ -1,8 +0,11 @@

// Type definitions for requestidlecallback 0.1
// Type definitions for requestidlecallback 0.3
// Project: https://w3c.github.io/requestidlecallback/, https://github.com/afarkas/requestidlecallback
// Definitions by: 贺师俊 <https://github.com/hax>, Vladimir Grenaderov <https://github.com/VladimirGrenaderov>, Max Boguslavskiy <https://github.com/maxbogus>
// Definitions by: 贺师俊 <https://github.com/hax>
// Vladimir Grenaderov <https://github.com/VladimirGrenaderov>
// Max Boguslavskiy <https://github.com/maxbogus>
// Teramoto Daiki <https://github.com/teramotodaiki>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): IdleCallbackHandle;
export function cancelIdleCallback(handle: IdleCallbackHandle): void;
export function request(callback: IdleRequestCallback, options?: IdleRequestOptions): IdleCallbackHandle;
export function cancel(handle: IdleCallbackHandle): void;

@@ -15,13 +18,13 @@ export type DOMHighResTimeStamp = number;

export interface IdleDeadline {
timeRemaining(): DOMHighResTimeStamp;
readonly didTimeout: boolean;
timeRemaining(): DOMHighResTimeStamp;
readonly didTimeout: boolean;
}
export interface IdleRequestOptions {
timeout: number;
timeout: number;
}
export interface Window {
requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): IdleCallbackHandle;
cancelIdleCallback(handle: number): void;
requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): IdleCallbackHandle;
cancelIdleCallback(handle: number): void;
}
{
"name": "@types/requestidlecallback",
"version": "0.1.2",
"version": "0.3.0",
"description": "TypeScript definitions for requestidlecallback",

@@ -21,2 +21,7 @@ "license": "MIT",

"githubUsername": "maxbogus"
},
{
"name": "Teramoto Daiki",
"url": "https://github.com/teramotodaiki",
"githubUsername": "teramotodaiki"
}

@@ -33,4 +38,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "4d65b3b6e3e60af4335f1e311a02202911a28a472f9a3ded9fa07bf111b41158",
"typesPublisherContentHash": "8bf0194d878ab69a5a8c4314db69505caf02db27aa34ac3a642af442a9268c8b",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Mon, 23 Sep 2019 22:40:33 GMT
* Last updated: Thu, 03 Oct 2019 21:43:46 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by 贺师俊 <https://github.com/hax>, Vladimir Grenaderov <https://github.com/VladimirGrenaderov>, and Max Boguslavskiy <https://github.com/maxbogus>.
These definitions were written by 贺师俊 <https://github.com/hax>, Vladimir Grenaderov <https://github.com/VladimirGrenaderov>, Max Boguslavskiy <https://github.com/maxbogus>, and Teramoto Daiki <https://github.com/teramotodaiki>.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc