DefinitelyTyped/types/inline-style-prefixer/index.d.ts
Frank Li fcaad045de Update type definitions for the latest version of inline-style-prefixer (#29426)
* Update inline-style-prefixer-tests.ts

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts
2018-10-09 09:43:52 -07:00

26 lines
842 B
TypeScript

// 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
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[];
}
export type Prefix = <T>(style: T) => T;
export function createPrefixer(staticData: StaticData): Prefix;
export const prefix: Prefix;