@data-fair/lib-vue 1.10.0 → 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- export declare const locale: string, dayjs: (date?: string | number | import("dayjs").Dayjs | Date | null | undefined) => import("dayjs").Dayjs & {
1
+ export declare const locale: string, dayjs: (date?: string | number | import("dayjs").Dayjs | Date | null | undefined) => Omit<import("dayjs").Dayjs, "add" | "subtract"> & {
2
2
  fromNow(withoutSuffix?: boolean): string;
3
3
  from(compared: import("dayjs").ConfigType, withoutSuffix?: boolean): string;
4
4
  toNow(withoutSuffix?: boolean): string;
5
5
  to(compared: import("dayjs").ConfigType, withoutSuffix?: boolean): string;
6
- add(duration: import("dayjs/plugin/duration.js").Duration): import("dayjs").Dayjs & any;
7
- subtract(duration: import("dayjs/plugin/duration.js").Duration): import("dayjs").Dayjs & any;
6
+ add(duration: import("dayjs/plugin/duration.js").Duration): Omit<import("dayjs").Dayjs, "add" | "subtract"> & any;
7
+ subtract(duration: import("dayjs/plugin/duration.js").Duration): Omit<import("dayjs").Dayjs, "add" | "subtract"> & any;
8
8
  };
package/locale-dayjs.d.ts CHANGED
@@ -4,7 +4,7 @@ import 'dayjs/locale/fr';
4
4
  import 'dayjs/locale/en';
5
5
  import duration, { type Duration } from 'dayjs/plugin/duration.js';
6
6
  export type { ConfigType as DayjsConfigType } from 'dayjs';
7
- type RelativeDayjs = Dayjs & {
7
+ type RelativeDayjs = Omit<Dayjs, 'add' | 'subtract'> & {
8
8
  fromNow(withoutSuffix?: boolean): string;
9
9
  from(compared: ConfigType, withoutSuffix?: boolean): string;
10
10
  toNow(withoutSuffix?: boolean): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-vue",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "Composables and other utilities for Vue applications in the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "files": [