pepka 0.13.0-b4 → 0.13.0-b5
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 +5 -5
- package/dist/es/index.js +0 -1
- package/package.json +1 -1
- package/src/safe.ts +1 -1
package/dist/bundle.d.ts
CHANGED
|
@@ -43,10 +43,10 @@ export declare const bind: {
|
|
|
43
43
|
(a: any, b: any): any;
|
|
44
44
|
};
|
|
45
45
|
export declare const nth: {
|
|
46
|
-
(a: symbol, b: unknown[]): (a: number) => unknown;
|
|
47
|
-
(a: number, b: symbol): (b: unknown[]) => unknown;
|
|
48
|
-
(a: number): (b: unknown[]) => unknown;
|
|
49
|
-
(a: number, b: unknown[]): unknown;
|
|
46
|
+
(a: symbol, b: string | unknown[]): (a: number) => unknown;
|
|
47
|
+
(a: number, b: symbol): (b: string | unknown[]) => unknown;
|
|
48
|
+
(a: number): (b: string | unknown[]) => unknown;
|
|
49
|
+
(a: number, b: string | unknown[]): unknown;
|
|
50
50
|
};
|
|
51
51
|
export declare const includes: {
|
|
52
52
|
(a: symbol, b: unknown[]): (a: unknown) => boolean;
|
|
@@ -55,7 +55,7 @@ export declare const includes: {
|
|
|
55
55
|
(a: unknown, b: unknown[]): boolean;
|
|
56
56
|
};
|
|
57
57
|
export declare const slice: FT.Curry<(from: number, to: number, o: any[] | string) => string | any[]>;
|
|
58
|
-
export declare const head: (b: unknown[]) => unknown;
|
|
58
|
+
export declare const head: (b: string | unknown[]) => unknown;
|
|
59
59
|
export declare const tail: FT.Curry<(o: string | any[]) => string | any[]>;
|
|
60
60
|
export declare const add: {
|
|
61
61
|
(a: symbol, b: number): (a: number) => number;
|
package/dist/es/index.js
CHANGED
package/package.json
CHANGED
package/src/safe.ts
CHANGED
|
@@ -58,7 +58,7 @@ export const bind = curry2<AnyFunc>(
|
|
|
58
58
|
(fn: AnyFunc, context: any) => fn.bind(context)
|
|
59
59
|
)
|
|
60
60
|
|
|
61
|
-
const _nth = <T=any>(i: number, data: T[]) => data[i]
|
|
61
|
+
const _nth = <T=any>(i: number, data: T[] | string) => data[i]
|
|
62
62
|
export const nth = curry2(_nth)
|
|
63
63
|
|
|
64
64
|
export const includes = curry2(
|