@bbodek/utils 0.0.8 → 0.0.9

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,3 +1,3 @@
1
1
  import { DateDateParams } from '../../date/core/types';
2
- export declare const date: ({ date }: DateDateParams) => number;
2
+ export declare const date: (params?: DateDateParams) => number;
3
3
  //# sourceMappingURL=date.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/date/core/date.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAO,MAAM,IAAI,GAAI,UAAU,cAAc,WAA8B,CAAC"}
1
+ {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../src/date/core/date.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAO,MAAM,IAAI,GAAI,SAAS,cAAc,WAI3C,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { DateDayParams } from '../../date/core/types';
2
- export declare const day: ({ date }: DateDayParams) => 0 | 1 | 2 | 3 | 4 | 5 | 6;
2
+ export declare const day: (params?: DateDayParams) => 0 | 1 | 2 | 3 | 4 | 5 | 6;
3
3
  //# sourceMappingURL=day.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"day.d.ts","sourceRoot":"","sources":["../../../src/date/core/day.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,eAAO,MAAM,GAAG,GAAI,UAAU,aAAa,8BAA6B,CAAC"}
1
+ {"version":3,"file":"day.d.ts","sourceRoot":"","sources":["../../../src/date/core/day.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,eAAO,MAAM,GAAG,GAAI,SAAS,aAAa,8BAIzC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { DateEndOfParams } from '../../date/core/types';
2
- export declare const endOf: ({ date, unit }: DateEndOfParams) => import("dayjs").Dayjs;
2
+ export declare const endOf: (params?: DateEndOfParams) => import("dayjs").Dayjs;
3
3
  //# sourceMappingURL=endOf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"endOf.d.ts","sourceRoot":"","sources":["../../../src/date/core/endOf.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,KAAK,GAAI,gBAAiC,eAAe,0BACtC,CAAC"}
1
+ {"version":3,"file":"endOf.d.ts","sourceRoot":"","sources":["../../../src/date/core/endOf.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,KAAK,GAAI,SAAS,eAAe,0BAI7C,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { DateGetParams } from '../../date/core/types';
2
- export declare const get: ({ date, unit }: DateGetParams) => number;
2
+ export declare const get: (params?: DateGetParams) => number;
3
3
  //# sourceMappingURL=get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/date/core/get.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,eAAO,MAAM,GAAG,GAAI,gBAAiC,aAAa,WACpC,CAAC"}
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/date/core/get.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,eAAO,MAAM,GAAG,GAAI,SAAS,aAAa,WAIzC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { DateMonthParams } from '../../date/core/types';
2
- export declare const month: ({ date }: DateMonthParams) => number;
2
+ export declare const month: (params?: DateMonthParams) => number;
3
3
  //# sourceMappingURL=month.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"month.d.ts","sourceRoot":"","sources":["../../../src/date/core/month.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,KAAK,GAAI,UAAU,eAAe,WAA+B,CAAC"}
1
+ {"version":3,"file":"month.d.ts","sourceRoot":"","sources":["../../../src/date/core/month.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,KAAK,GAAI,SAAS,eAAe,WAI7C,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { DateStartOfParams } from '../../date/core/types';
2
- export declare const startOf: ({ date, unit }: DateStartOfParams) => import("dayjs").Dayjs;
2
+ export declare const startOf: (params?: DateStartOfParams) => import("dayjs").Dayjs;
3
3
  //# sourceMappingURL=startOf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"startOf.d.ts","sourceRoot":"","sources":["../../../src/date/core/startOf.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,OAAO,GAAI,gBAAiC,iBAAiB,0BACxC,CAAC"}
1
+ {"version":3,"file":"startOf.d.ts","sourceRoot":"","sources":["../../../src/date/core/startOf.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,OAAO,GAAI,SAAS,iBAAiB,0BAIjD,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { DateYearParams } from '../../date/core/types';
2
- export declare const year: ({ date }: DateYearParams) => number;
2
+ export declare const year: (params?: DateYearParams) => number;
3
3
  //# sourceMappingURL=year.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"year.d.ts","sourceRoot":"","sources":["../../../src/date/core/year.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAO,MAAM,IAAI,GAAI,UAAU,cAAc,WAA8B,CAAC"}
1
+ {"version":3,"file":"year.d.ts","sourceRoot":"","sources":["../../../src/date/core/year.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAO,MAAM,IAAI,GAAI,SAAS,cAAc,WAI3C,CAAC"}
@@ -9,16 +9,16 @@ export declare const date: {
9
9
  isValid: ({ date, format, }: import(".").DateIsValidParams) => boolean;
10
10
  toParseDateType: <T extends import(".").DateParseType>({ type, date, }: import(".").DateToParseDateTypeParams<T>) => import("./formatting/types").ParseResult<T>;
11
11
  toString: ({ date, format, }: import(".").DateToStringParams) => string;
12
- date: ({ date }: import(".").DateDateParams) => number;
13
- day: ({ date }: import(".").DateDayParams) => 0 | 1 | 2 | 3 | 4 | 5 | 6;
14
- endOf: ({ date, unit }: import(".").DateEndOfParams) => import("dayjs").Dayjs;
15
- get: ({ date, unit }: import(".").DateGetParams) => number;
16
- month: ({ date }: import(".").DateMonthParams) => number;
12
+ date: (params?: import(".").DateDateParams) => number;
13
+ day: (params?: import(".").DateDayParams) => 0 | 1 | 2 | 3 | 4 | 5 | 6;
14
+ endOf: (params?: import(".").DateEndOfParams) => import("dayjs").Dayjs;
15
+ get: (params?: import(".").DateGetParams) => number;
16
+ month: (params?: import(".").DateMonthParams) => number;
17
17
  now: () => import("dayjs").Dayjs;
18
18
  set: ({ date, value, unit }: import(".").DateSetParams) => import("dayjs").Dayjs;
19
- startOf: ({ date, unit }: import(".").DateStartOfParams) => import("dayjs").Dayjs;
19
+ startOf: (params?: import(".").DateStartOfParams) => import("dayjs").Dayjs;
20
20
  timezone: (params?: import(".").DateTimeZoneParams) => import("dayjs").Dayjs;
21
- year: ({ date }: import(".").DateYearParams) => number;
21
+ year: (params?: import(".").DateYearParams) => number;
22
22
  add: ({ date, value, unit }: import(".").DateAddParams) => import("dayjs").Dayjs;
23
23
  compare: ({ target, direction, isRelative, }: import(".").DateCompareParams) => string;
24
24
  diff: ({ date, target, unit }: import(".").DateDiffParams) => number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/date/index.ts"],"names":[],"mappings":"AAKA,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AAEvC,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,QAAQ,GACT,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,cAAc,EACd,aAAa,EACb,eAAe,EACf,aAAa,EACb,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,EACR,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,eAAO,MAAM,IAAI;cA/Bb,gDAGS;sBAPR,mCAAuB,EAAE,yDAIvB;eALiB,iDAInB;WAPL,oCAAuB;UADkB,mCACrB;YAEJ,2CACM;UADV,yCACI;YAHf,qCAAyB;;UAEd,gDACW;cADH,6CACQ;eAQnB,uCACK;WAZd,oCAAuB;UAEZ,gDACW;cAKlB,iEAGO;WATW,kDAErB;cAGC,iEAIQ;eAJH,kEAIS;gBADd,iEAKiB;aAbF,qDAEZ;UAAyB,oCAEjB;UAQN,oCACO;aAQE,uCAET;;;;eAvBc,sDAEX;CAwCT,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/date/index.ts"],"names":[],"mappings":"AAKA,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AAEvC,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,QAAQ,GACT,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,cAAc,EACd,aAAa,EACb,eAAe,EACf,aAAa,EACb,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,EACR,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,eAAO,MAAM,IAAI;cA/Bb,gDAGS;sBAPR,mCAAuB,EAAE,yDAIvB;eALiB,iDAInB;WAPL,mCAAsB;UADmB,kCACtB;YAEH,oCAAwB;UAA5B,kCAAsB;YAFjC,oCAAwB;;UAEb,gDACW;cADH,sCAChB;eAQK,uCACK;WAZd,mCAAsB;UAEX,gDACW;cAKlB,iEAGO;WATW,kDAErB;cAGC,iEAIQ;eAJH,kEAIS;gBADd,iEAKiB;aAbF,qDAEZ;UAAyB,oCAEjB;UAQN,oCACO;aAQE,uCAET;;;;eAvBc,sDAEX;CAwCT,CAAC"}