chinese-workday
chinese-workday copied to clipboard
TypeScript typings not correct
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch [email protected]
for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/chinese-workday/index.d.ts b/node_modules/chinese-workday/index.d.ts
index b252d4d..6b6494a 100644
--- a/node_modules/chinese-workday/index.d.ts
+++ b/node_modules/chinese-workday/index.d.ts
@@ -1,5 +1,3 @@
-export interface ChineseWorkday{
- isWorkday(day: string | Date): boolean;
- isHoliday(day: string | Date): boolean;
- getFestival(day: string | Date): string;
-}
+export function isWorkday(day: string | Date): boolean;
+export function isHoliday(day: string | Date): boolean;
+export function getFestival(day: string | Date): string;
This issue body was partially generated by patch-package.