diff --git a/types/hex-rgba/hex-rgba-tests.ts b/types/hex-rgba/hex-rgba-tests.ts new file mode 100644 index 0000000000..f7ee8cf285 --- /dev/null +++ b/types/hex-rgba/hex-rgba-tests.ts @@ -0,0 +1,3 @@ +import hexToRgba = require('hex-rgba'); + +const rgba = hexToRgba('#1b2b34', 40); diff --git a/types/hex-rgba/index.d.ts b/types/hex-rgba/index.d.ts new file mode 100644 index 0000000000..ba4205a73f --- /dev/null +++ b/types/hex-rgba/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for hex-rgba 1.0 +// Project: https://github.com/developersoul/hex-rgba#readme +// Definitions by: Andrew Makarov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = hexToRgba; + +declare function hexToRgba(hex: string, opacity: number): string; diff --git a/types/hex-rgba/tsconfig.json b/types/hex-rgba/tsconfig.json new file mode 100644 index 0000000000..82f2e3808e --- /dev/null +++ b/types/hex-rgba/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "strictFunctionTypes": true + }, + "files": [ + "index.d.ts", + "hex-rgba-tests.ts" + ] +} diff --git a/types/hex-rgba/tslint.json b/types/hex-rgba/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/hex-rgba/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }