Comparing version 1.0.8 to 1.0.9
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46301
13
1306