Skip to content

Commit 6802e2d

Browse files
author
Paul Roman
committed
Types fixed
1 parent 5b62f40 commit 6802e2d

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
module.exports = function rgba(red, green, blue, alpha) {
1+
function rgba(red, green, blue, alpha) {
22
return `rgba(${red}, ${green}, ${blue}, ${alpha})`;
3+
}
4+
5+
module.exports = {
6+
rgba
37
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "css-verbose",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "A verbose library for smoother CSS-in-JS",
55
"main": "index.js",
66
"scripts": {

types.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
declare module 'css-module' {
2-
export = {
3-
rgba: function rgba(red: string, green: string, blue: string, alpha: string): string;
4-
};
2+
export function rgba(red: string, green: string, blue: string, alpha: string): string;
53
}

0 commit comments

Comments
 (0)