mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #46617 Added types for rgb2hex by @abh80
* Add files via upload * fixed white spaces
This commit is contained in:
parent
5ac9294b5d
commit
2a4dec52e0
9
types/rgb2hex/index.d.ts
vendored
Normal file
9
types/rgb2hex/index.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
// Type definitions for rgb2hex 0.2
|
||||
// Project: https://github.com/christian-bromann/rgb2hex
|
||||
// Definitions by: abh80 <https://github.com/abh80>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
declare function hex2rgb(rgb: string): {
|
||||
hex: string;
|
||||
alpha: number;
|
||||
};
|
||||
export = hex2rgb;
|
||||
3
types/rgb2hex/rgb2hex-tests.ts
Normal file
3
types/rgb2hex/rgb2hex-tests.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import rgb2hex = require('rgb2hex');
|
||||
rgb2hex('rgb(210,43,2525)');
|
||||
rgb2hex('rgba(12,173,22,.67)');
|
||||
23
types/rgb2hex/tsconfig.json
Normal file
23
types/rgb2hex/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"rgb2hex-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/rgb2hex/tslint.json
Normal file
3
types/rgb2hex/tslint.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user