chinese-workday icon indicating copy to clipboard operation
chinese-workday copied to clipboard

TypeScript typings not correct

Open kokororin opened this issue 7 months ago • 0 comments

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.

kokororin avatar Dec 01 '23 08:12 kokororin