Socket
Socket
Sign inDemoInstall

fastdom

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastdom - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

extensions/fastdom-promised.d.ts

28

fastdom.d.ts

@@ -1,22 +0,12 @@

// Type definitions for fastdom v1.0.4
// Project: https://github.com/wilsonpage/fastdom
// Definitions by: Martijn Welker <https://github.com/martijnwelker>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
declare namespace fastdom {
type CallbackFunction = () => void;
declare class Fastdom {
clear<T extends () => void>(task: T): boolean;
extend<T extends object>(props: T): Omit<this, keyof T & keyof this> & T;
measure<T extends () => void>(task: T, context?: any): T;
mutate<T extends () => void>(task: T, context?: any): T;
}
const reads: CallbackFunction[];
const writes: CallbackFunction[];
const scheduled: boolean;
const raf: (fn: CallbackFunction) => void;
declare const fastdom: Fastdom
function measure(fn: CallbackFunction, args?: any): CallbackFunction;
function mutate(fn: CallbackFunction, args?: any): CallbackFunction;
function clear(fn: CallbackFunction): boolean;
}
export as namespace fastdom;
export = fastdom;
export = fastdom;
{
"name": "fastdom",
"description": "Eliminates layout thrashing by batching DOM read/write operations",
"version": "1.0.8",
"version": "1.0.9",
"main": "fastdom.js",

@@ -6,0 +6,0 @@ "types": "fastdom.d.ts",

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