Skip to content

Commit da3d303

Browse files
authored
fix(ui/date.buildDate): date.buildDate returns Date and not string (quasarframework#7888)
* date.buildDate returns Date and not string According to https://github.com/quasarframework/quasar/blob/af3ef42fa2dda2debaeb1a45675cead87b26f09b/ui/src/utils/date.js#L355
1 parent 44d67a0 commit da3d303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/types/utils/date.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export type DateUnitOptions = "second" | "minute" | "hour" | "day" | "month" | "
2626
export namespace date {
2727
function isValid(date: number | string): boolean;
2828
function extractDate(str: string, mask: string, locale?: DateLocale): Date;
29-
function buildDate(options: BuildDateOptions, utc?: boolean): string;
29+
function buildDate(options: BuildDateOptions, utc?: boolean): Date;
3030
function getDayOfWeek(date: Date): number;
3131
function getWeekOfYear(date: Date | number | string): number;
3232
function isBetweenDates(date: Date | number | string, from: Date | number | string, to: Date | number | string, opts?: { inclusiveFrom: boolean; inclusiveTo: boolean; onlyDate: boolean }): boolean;

0 commit comments

Comments
 (0)