Skip to content

Commit

Permalink
✏️
Browse files Browse the repository at this point in the history
  • Loading branch information
nanarino committed Aug 6, 2024
1 parent 694b811 commit bf55406
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@holy-two/data-theme",
"version": "0.0.5",
"version": "0.0.6",
"description": "A setting for mounting themes.",
"type": "module",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion package/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { Themes } from "./themes"
export { Theme } from "./themes"
import themes from "./themes"
import toggle from "./toggle"
import init from "./init"
Expand Down
4 changes: 2 additions & 2 deletions package/src/themes.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const themes = ["dark", "light"] as const

export type Themes = (typeof themes)[number]
export type Theme = (typeof themes)[number]

declare global {
interface Window {
readonly theme: Themes
readonly theme: Theme
}
}

Expand Down

0 comments on commit bf55406

Please sign in to comment.