Skip to content

Commit

Permalink
fix(addStyle): fix property arg type (#28)
Browse files Browse the repository at this point in the history
Co-authored-by: zhiyang.song <zhiyang.song@mobilemd.cn>
  • Loading branch information
crimson968 and zhiyang.song committed Dec 27, 2021
1 parent 06f034f commit a68ac2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface CSSProperty {
[key: string]: string | number;
}

export default (node: Element, property: string | CSSProperty, value?: string | number): void => {
export default (node: Element, property: string | Partial<CSSProperty>, value?: string | number): void => {
let css = '';
let props = property;

Expand Down

0 comments on commit a68ac2a

Please sign in to comment.