npm.io
1.2.5 • Published 2 years ago

@types/facepaint

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

Installation

npm install --save @types/facepaint

Summary

This package contains type definitions for facepaint (https://github.com/emotion-js/facepaint).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/facepaint.

index.d.ts

declare namespace facepaint {
    type BaseArg = object | object[];
    type Arg = BaseArg | BaseArg[];

    type Selector = string;

    interface DynamicStyle {
        [key: string]: {
            [key: string]: string | number;
        };
    }

    interface DynamicStyleFunction {
        (...args: Arg[]): DynamicStyle[];
    }

    interface Options {
        literal?: boolean | undefined;
        overlap?: boolean | undefined;
    }
}

declare function facepaint(
    breakpoints: facepaint.Selector[],
    options?: facepaint.Options,
): facepaint.DynamicStyleFunction;

export = facepaint;

Additional Details

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

Credits

These definitions were written by Ciarán Curley, Anton Samper Rivaya, and Tim Swalling.