Skip to content

Commit

Permalink
fix: declare styles instead of setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Zivsteve committed Apr 23, 2021
1 parent 1e60abd commit f242f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/styled-decorator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type StyleConstructor = ((styles?: StylesProps) => StyleSheetStyles) | StyleShee
/** @see https://skyle.js.org/docs/api/styled */
export function styled<T extends Constructor>(WrappedComponent: T): T {
class StyledComponent extends WrappedComponent {
styles?: StyleConstructor;
declare styles?: StyleConstructor;
__styleSheet?: StyleConstructor;
private __styles: StyleSheetStyles = {};

Expand Down

0 comments on commit f242f55

Please sign in to comment.