Skip to content

Commit

Permalink
type: Fix type issue in react.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 17, 2022
1 parent 0f83eef commit fcfdf51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ declare global {
namespace JSX {
interface IntrinsicElements {
'dark-mode': Partial<DarkMode> | {
style?: Partial<CSSStyleDeclaration>;
style?: Partial<CSSStyleDeclaration> | React.CSSProperties;
};
}
}
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* @package @wcj/dark-mode
* Web Component that toggles dark mode 馃寬
* https://github.com/jaywcjlove/dark-mode.git
* website:
* Github: https://github.com/jaywcjlove/dark-mode.git
* Website: https://jaywcjlove.github.io/dark-mode
*
* Licensed under the MIT license.
* @license Copyright 漏 2022. Licensed under the MIT License
Expand Down

0 comments on commit fcfdf51

Please sign in to comment.