Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(theme-tool): add theme-tool.d.ts for tinyOldTheme vars #2786

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/theme/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@opentiny/vue-theme",
"type": "module",
"version": "3.20.1",
"version": "3.20.2",
"description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",
"author": "OpenTiny Team",
"license": "MIT",
Expand Down
4 changes: 4 additions & 0 deletions packages/theme/src/theme-tool.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ interface ThemeData {
css?: string
}

declare const tinyOldTheme: ThemeData

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that ThemeData is correctly defined and imported in this file to avoid potential type errors.

declare const tinyAuroraTheme: ThemeData

export { tinyOldTheme, tinyAuroraTheme }
zzcr marked this conversation as resolved.
Show resolved Hide resolved
/**
* 动态切换文档或影子根节点的样式类
* @example
Expand Down
Loading