UNPKG

842 BTypeScriptView Raw
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
9export 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
16export interface StaticData {
17 prefixMap: Record<string, string[]>;
18 plugins: Plugin[];
19}
20
21export type Prefix = <T>(style: T) => T;
22
23export function createPrefixer(staticData: StaticData): Prefix;
24
25export const prefix: Prefix;