pepka 1.6.7 → 1.6.8

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.
package/dist/bundle.d.ts CHANGED
@@ -444,10 +444,26 @@ export declare const mapObj: {
444
444
  (a: (s: any, i?: string, list?: any[]) => any, b: AnyObject): AnyObject;
445
445
  };
446
446
  export declare const join: {
447
- (a: symbol, b: any[]): (a: string) => string;
448
- (a: string, b: symbol): (b: any[]) => string;
449
- (a: string): (b: any[]) => string;
450
- (a: string, b: any[]): string;
447
+ (a: symbol, b: ArrayLike<any> & {
448
+ join: AnyFunc<string, [
449
+ delim: string
450
+ ]>;
451
+ }): (a: string) => string;
452
+ (a: string, b: symbol): (b: ArrayLike<any> & {
453
+ join: AnyFunc<string, [
454
+ delim: string
455
+ ]>;
456
+ }) => string;
457
+ (a: string): (b: ArrayLike<any> & {
458
+ join: AnyFunc<string, [
459
+ delim: string
460
+ ]>;
461
+ }) => string;
462
+ (a: string, b: ArrayLike<any> & {
463
+ join: AnyFunc<string, [
464
+ delim: string
465
+ ]>;
466
+ }): string;
451
467
  };
452
468
  export declare const forEach: {
453
469
  (a: symbol, b: any[]): (a: (s: unknown, i: number, arr: unknown[]) => any) => void;
package/package.json CHANGED
@@ -41,7 +41,7 @@
41
41
  "prod": "npm run gentypes && npm run prod:es && npm run prod:cjs",
42
42
  "all": "npm run dev && npm run prod"
43
43
  },
44
- "version": "1.6.7",
44
+ "version": "1.6.8",
45
45
  "devDependencies": {
46
46
  "@rollup/plugin-commonjs": "^28.0.6",
47
47
  "@rollup/plugin-node-resolve": "^16.0.1",
package/src/safe.ts CHANGED
@@ -323,7 +323,9 @@ export const map = curry2(
323
323
  export const mapObj = curry2(
324
324
  (pipe: (s: any, i?: string, list?: any[]) => any, o: AnyObject) => qmapObj(pipe, {...o})
325
325
  )
326
- export const join = curry2((delimeter: string, arr: any[]) => arr.join(delimeter))
326
+ export const join = curry2(
327
+ (delimeter: string, arr: ArrayLike<any>&{join: AnyFunc<string, [delim: string]>}) => arr.join(delimeter)
328
+ )
327
329
  export const forEach = curry2(<T extends any>(pipe: (s: T, i: number, arr: T[]) => any, arr: any[]) => arr.forEach(pipe))
328
330
  export const both = curry3((cond1: Cond, cond2: Cond, s: any) => cond2(s) && cond1(s))
329
331
  export const isEmpty = (s: any) => {