@types/color-string

  • Version 1.5.5
  • Published
  • 5.02 kB
  • No dependencies
  • MIT license

Install

npm i @types/color-string
yarn add @types/color-string
pnpm add @types/color-string

Overview

TypeScript definitions for color-string

Index

Functions

function get

get: typeof get;

    Interfaces

    interface ColorDescriptor

    interface ColorDescriptor {}

      property model

      model: 'rgb' | 'hsl' | 'hwb';

        property value

        value: Color;

          Type Aliases

          type Color

          type Color = [number, number, number, number];

            Namespaces

            namespace get

            namespace get {}

              function hsl

              hsl: <TColorStr extends string>(
              colorString: TColorStr
              ) => TColorStr extends string ? Color : null;

                function hwb

                hwb: <TColorStr extends string>(
                colorString: TColorStr
                ) => TColorStr extends string ? Color : null;

                  function rgb

                  rgb: <TColorStr extends string>(
                  colorString: TColorStr
                  ) => TColorStr extends string ? Color : null;

                    namespace to

                    namespace to {}

                      function hex

                      hex: (...args: Array<number | number[]>) => string;

                        function hsl

                        hsl: (...args: Array<number | number[]>) => string;

                          function hwb

                          hwb: (...args: Array<number | number[]>) => string;

                            function keyword

                            keyword: (...args: Array<number | number[]>) => string;

                              function rgb

                              rgb: typeof rgb;

                                namespace to.rgb

                                namespace to.rgb {}

                                  function percent

                                  percent: (...args: Array<number | number[]>) => string;

                                    Package Files (1)

                                    Dependencies (0)

                                    No dependencies.

                                    Dev Dependencies (0)

                                    No dev dependencies.

                                    Peer Dependencies (0)

                                    No peer dependencies.

                                    Badge

                                    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/color-string.

                                    • Markdown
                                      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/color-string)
                                    • HTML
                                      <a href="https://www.jsdocs.io/package/@types/color-string"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>