Comparing version
@@ -1,3 +0,2 @@ | ||
import { Callback } from './vh-check-types'; | ||
export declare function addListener(eventName: string, callback: Callback): void; | ||
export declare function addListener(eventName: string, callback: EventListener): void; | ||
export declare function removeAll(): void; |
@@ -1,4 +0,4 @@ | ||
import { Sizes } from './vh-check-types'; | ||
export declare function noop<ComputeCallback>(): void; | ||
export declare function computeDifference<ComputeSizeMethod>(): Sizes; | ||
export declare function redefineVhUnit<ComputeSizeMethod>(): Sizes; | ||
import { Sizes } from './types'; | ||
export declare function noop(): void; | ||
export declare function computeDifference(): Sizes; | ||
export declare function redefineVhUnit(): Sizes; |
@@ -1,2 +0,2 @@ | ||
import { Configuration } from './vh-check-types'; | ||
import { Configuration } from './types'; | ||
export declare function isString(text: any): text is string; | ||
@@ -3,0 +3,0 @@ export declare function isFunction(f: any): boolean; |
@@ -1,2 +0,2 @@ | ||
import { Configuration, Result } from './vh-check-types'; | ||
import { Configuration, Result } from './types'; | ||
export default function vhCheck(options?: string | Configuration): Result; |
@@ -145,3 +145,5 @@ (function (global, factory) { | ||
}); | ||
window.addEventListener(eventName, callback /* istanbul ignore next */, passiveSupported ? { passive: true } : false); | ||
window.addEventListener(eventName, callback, | ||
/* istanbul ignore next */ | ||
passiveSupported ? { passive: true } : false); | ||
} | ||
@@ -148,0 +150,0 @@ function removeAll() { |
{ | ||
"name": "vh-check", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "vh unit buggyfill", | ||
"main": "dist/vh-check.js", | ||
"types": "dist/vh-check.d.ts", | ||
"scripts": { | ||
@@ -13,3 +14,3 @@ "start": "npm run build:demo && http-server ./dist-demo -c-1", | ||
"build:demo": "npm run build && del dist-demo && gulp demo", | ||
"build:github": "build:demo -- --gh-release", | ||
"build:github": "npm run build:demo -- --gh-release", | ||
"prepublishOnly": "npm run toc && npm run build", | ||
@@ -73,3 +74,3 @@ "release": "np --no-cleanup --no-yarn", | ||
"exclude": [ | ||
"**/*.test.ts", | ||
"test", | ||
"**/*.js" | ||
@@ -76,0 +77,0 @@ ] |
# vh-check | ||
get reliable CSS `vh` sizes for `1kb` gzipped | ||
get reliable CSS `vh` sizes for [1kb gzipped](https://bundlephobia.com/result?p=vh-check) | ||
[](https://badge.fury.io/js/vh-check) | ||
[](https://badge.fury.io/js/vh-check) [](https://travis-ci.org/Hiswe/vh-check) | ||
@@ -7,0 +7,0 @@ <!-- START doctoc generated TOC please keep comment here to allow auto update --> |
52579
0.26%13
8.33%232
0.43%