1.2.5 • Published 6 months ago

@types/facepaint v1.2.5

Weekly downloads
6,376
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for facepaint 1.2
// Project: https://github.com/emotion-js/facepaint
// Definitions by: Ciarán Curley <https://github.com/DogPawHat>
//                 Anton Samper Rivaya <https://github.com/antonsamper>
//                 Tim Swalling <https://github.com/timswalling>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2

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: Thu, 08 Jul 2021 12:01:27 GMT
  • Dependencies: none
  • Global values: none

Credits

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