@types/inline-style-prefixer
Advanced tools
Comparing version 3.0.1 to 5.0.0
@@ -1,28 +0,25 @@ | ||
// Type definitions for inline-style-prefixer 3.0 | ||
// Type definitions for inline-style-prefixer 5.0 | ||
// Project: https://github.com/rofrischmann/inline-style-prefixer | ||
// Definitions by: Andrej Hazucha <https://github.com/ahz> | ||
// dpetrezselyova <https://github.com/dpetrezselyova> | ||
// Frank Li <https://github.com/franklixuefei> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
declare namespace InlineStylePrefixer { | ||
interface Configuration { | ||
userAgent?: string; | ||
keepUnprefixed?: boolean; | ||
} | ||
export type Plugin = <T>( | ||
property: string, | ||
value: number | string | number[] | string[] | T, | ||
style: T, | ||
prefixMap?: Record<string, string[]> | ||
) => number | string | number[] | string[] | T | undefined; | ||
export interface StaticData { | ||
prefixMap: Record<string, string[]>; | ||
plugins: Plugin[]; | ||
} | ||
declare class InlineStylePrefixer { | ||
constructor(cfg?: InlineStylePrefixer.Configuration); | ||
export type Prefix = <T>(style: T) => T; | ||
prefix(style: CSSStyleDeclaration): CSSStyleDeclaration; | ||
export function createPrefixer(staticData: StaticData): Prefix; | ||
// support for React.CSSProperties | ||
prefix<T>(style: T): T; | ||
static prefixAll(style: CSSStyleDeclaration): CSSStyleDeclaration; | ||
// support for React.CSSProperties | ||
static prefixAll<T>(style: T): T; | ||
} | ||
export = InlineStylePrefixer; | ||
export const prefix: Prefix; |
{ | ||
"name": "@types/inline-style-prefixer", | ||
"version": "3.0.1", | ||
"version": "5.0.0", | ||
"description": "TypeScript definitions for inline-style-prefixer", | ||
@@ -16,2 +16,7 @@ "license": "MIT", | ||
"githubUsername": "dpetrezselyova" | ||
}, | ||
{ | ||
"name": "Frank Li", | ||
"url": "https://github.com/franklixuefei", | ||
"githubUsername": "franklixuefei" | ||
} | ||
@@ -22,8 +27,8 @@ ], | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "2db8fb95300fe77a7500026faf0047e054d41d34c3319f8e7207ad6d84322855", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "17623be0032967bed29acb13bf6d37ade4bcd2f9dd901a825e5a2425f09f4265", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inline-style-prefixer | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inline-style-prefixer | ||
Additional Details | ||
* Last updated: Wed, 25 Oct 2017 01:03:55 GMT | ||
* Last updated: Tue, 09 Oct 2018 17:57:22 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Andrej Hazucha <https://github.com/ahz>, dpetrezselyova <https://github.com/dpetrezselyova>. | ||
These definitions were written by Andrej Hazucha <https://github.com/ahz>, dpetrezselyova <https://github.com/dpetrezselyova>, Frank Li <https://github.com/franklixuefei>. |
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
3624
20