npm.io
5.0.3 • Published 2 years ago

@types/inline-style-prefixer

Licence
MIT
Version
5.0.3
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/inline-style-prefixer

Summary

This package contains type definitions for inline-style-prefixer (https://github.com/rofrischmann/inline-style-prefixer).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inline-style-prefixer.

index.d.ts

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;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: none

Credits

These definitions were written by Andrej Hazucha, dpetrezselyova, and Frank Li.