Skip to content

Commit

Permalink
Added export
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Dec 15, 2023
1 parent a0c40d6 commit db18881
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/style/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ const localHigh = document.createElement("meta");
localHigh.name = "local-high-style";
document.head.appendChild(localHigh);

// export type IStyleFragment = Partial<StyleFragment>;

class StyleFragment {

static newStyle( { selector = "", content = ""}) {
return new StyleFragment( { selector, content })
return new StyleFragment( { selector, content }) as Partial<StyleFragment>;
}

private selector: string;
Expand Down

0 comments on commit db18881

Please sign in to comment.