mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-30 13:37:35 +00:00
* 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
26 lines
842 B
TypeScript
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;
|