Skip to content

Commit

Permalink
feat: widen return type for toValue
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Apr 11, 2023
1 parent 929fea9 commit fcae57c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fluffy-bananas-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@svbstrate/core": patch
---

Widen return type for `toValue`
2 changes: 1 addition & 1 deletion packages/core/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export interface ThemeConfig {
properties: {
[Property in keyof CSSProperties]?: {
token?: keyof ThemeConfig["tokens"];
toValue?(value: Value): string | number;
toValue?(value: Value): SvbstrateValue;
};
};
}
Expand Down

0 comments on commit fcae57c

Please sign in to comment.