Skip to content

Commit

Permalink
refactor: types
Browse files Browse the repository at this point in the history
  • Loading branch information
bart-krakowski committed Jul 20, 2024
1 parent 55ff659 commit a86a743
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"email": "[email protected]"
},
"main": "dist/index.js",
"version": "1.0.5",
"version": "1.0.6",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
14 changes: 9 additions & 5 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { WeekInfo } from "./types"

declare namespace Intl {
interface Locale {
getWeekInfo: () => WeekInfo
weekInfo?: WeekInfo
declare global {
namespace Intl {
interface Locale {
getWeekInfo(): WeekInfo;
weekInfo?: WeekInfo;
}
}
}
}

export {};

0 comments on commit a86a743

Please sign in to comment.