Installation
npm install --save @types/hex-color-regex
Summary
This package contains type definitions for hex-color-regex (https://github.com/regexps/hex-color-regex#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hex-color-regex.
index.d.ts
/**
* The best regular expression (regex) for matching hex color values from string.
* Pass `strict: true` for strict mode
*/
declare function hexColorRegex(opts?: hexColorRegex.Options): RegExp;
declare namespace hexColorRegex {
interface Options {
strict?: boolean | undefined;
}
}
export = hexColorRegex;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Piotr Błażejewicz.