-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: bring back Theme TS type export
- Loading branch information
1 parent
e8113d3
commit d6808f0
Showing
3 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@chakra-ui/theme": patch | ||
--- | ||
|
||
Bring back the TS type `Theme` export and deprecated `DefaultChakraTheme`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import theme, { ChakraTheme } from "../src" | ||
|
||
describe("Theme", () => { | ||
it("should be a ChakraTheme", () => { | ||
// Check if default theme is of type ChakraTheme | ||
const defaultThemeIsAChakraTheme: ChakraTheme = theme | ||
expect(defaultThemeIsAChakraTheme).toBeTruthy() | ||
}) | ||
}) |