Skip to content

Commit

Permalink
Version 0.14.3
Browse files Browse the repository at this point in the history
  • Loading branch information
azukaar committed Aug 19, 2019
1 parent 1ab4d9b commit 60d05b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electron-css",
"version": "0.14.1",
"version": "0.14.3",
"description": "Proper, framework agnostic Style in JS library, without any of the fuss of CSS",
"main": "dist/index.js",
"files": [
Expand Down
8 changes: 5 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,16 @@ const jsonToCss = function (_css, className = "", refresh = () => { }) {
}
}

const CSS = function (rules, name = 'class') : {
type CSSResult = {
getStyle(): string;
inject(): void;
remove(callbackOnFirstSwap?: () => void): boolean;
refresh(): any;
toString(): string;
inherit(): any;
} | string {
}

const CSS = function (rules, name = 'class') : CSSResult & string {
let className = name + randomId();
let temp = '';

Expand Down Expand Up @@ -331,7 +333,7 @@ const CSS = function (rules, name = 'class') : {

result.inject();

return result;
return result as CSSResult & string;
}

CSS.next = (selector) => '> ' + selector;
Expand Down

0 comments on commit 60d05b1

Please sign in to comment.