1 | // Type definitions for inline-style-prefixer 5.0
|
2 | // Project: https://github.com/rofrischmann/inline-style-prefixer
|
3 | // Definitions by: Andrej Hazucha <https://github.com/ahz>
|
4 | // dpetrezselyova <https://github.com/dpetrezselyova>
|
5 | // Frank Li <https://github.com/franklixuefei>
|
6 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
7 | // TypeScript Version: 2.1
|
8 |
|
9 | export type Plugin = <T>(
|
10 | property: string,
|
11 | value: number | string | number[] | string[] | T,
|
12 | style: T,
|
13 | prefixMap?: Record<string, string[]>
|
14 | ) => number | string | number[] | string[] | T | undefined;
|
15 |
|
16 | export interface StaticData {
|
17 | prefixMap: Record<string, string[]>;
|
18 | plugins: Plugin[];
|
19 | }
|
20 |
|
21 | export type Prefix = <T>(style: T) => T;
|
22 |
|
23 | export function createPrefixer(staticData: StaticData): Prefix;
|
24 |
|
25 | export const prefix: Prefix;
|