mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 20:37:21 +00:00
public commit
This commit is contained in:
14
app/src/core/utils/dates.ts
Normal file
14
app/src/core/utils/dates.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import dayjs from "dayjs";
|
||||
import weekOfYear from "dayjs/plugin/weekOfYear.js";
|
||||
|
||||
declare module "dayjs" {
|
||||
interface Dayjs {
|
||||
week(): number;
|
||||
|
||||
week(value: number): dayjs.Dayjs;
|
||||
}
|
||||
}
|
||||
|
||||
dayjs.extend(weekOfYear);
|
||||
|
||||
export { dayjs };
|
||||
Reference in New Issue
Block a user