@vinicunca/perkakas 1.0.3 → 1.0.4
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/add-prop.d.cts +1 -1
- package/dist/add-prop.d.ts +1 -1
- package/dist/chunk-3DFX2FQG.cjs +1 -0
- package/dist/chunk-4WU7JGWS.cjs +1 -0
- package/dist/chunk-AACZ5UGG.cjs +1 -0
- package/dist/chunk-AKGWT6GC.js +1 -0
- package/dist/chunk-BT3FI7L7.js +1 -0
- package/dist/{chunk-XQOKSJ5R.cjs → chunk-E6RBEL5Z.cjs} +1 -1
- package/dist/chunk-EPHUNAE5.js +1 -0
- package/dist/chunk-G7BJFBAZ.cjs +1 -0
- package/dist/{chunk-YIUDV3OA.cjs → chunk-HTO3K3VA.cjs} +1 -1
- package/dist/chunk-IABWIMQT.js +1 -0
- package/dist/chunk-IRH6TGG5.js +1 -0
- package/dist/chunk-KAA6IVBL.js +1 -0
- package/dist/chunk-MADDQNAR.cjs +1 -0
- package/dist/chunk-OJ2QGTFS.js +1 -0
- package/dist/chunk-PFLGL4YP.js +1 -0
- package/dist/chunk-QTQTKNWA.js +1 -0
- package/dist/chunk-RCENCAXY.cjs +1 -0
- package/dist/chunk-RJAVPEJT.cjs +1 -0
- package/dist/chunk-U2BXIRBJ.js +1 -0
- package/dist/chunk-VN2OAM2N.js +1 -0
- package/dist/chunk-VPG3W5JH.cjs +1 -0
- package/dist/chunk-WQDEYM64.js +1 -0
- package/dist/chunk-WRKGH4XX.js +1 -0
- package/dist/chunk-Y3WI7FPB.cjs +1 -0
- package/dist/chunk-Z5UEQBZP.cjs +1 -0
- package/dist/chunk-ZO4ND36N.cjs +1 -0
- package/dist/chunk.cjs +1 -1
- package/dist/chunk.d.cts +91 -5
- package/dist/chunk.d.ts +91 -5
- package/dist/chunk.js +1 -1
- package/dist/chunk.spec-d.cjs +1 -1
- package/dist/chunk.spec-d.js +1 -1
- package/dist/concat.d.cts +1 -1
- package/dist/concat.d.ts +1 -1
- package/dist/conditional.d.cts +1 -1
- package/dist/conditional.d.ts +1 -1
- package/dist/conditional.spec-d.cjs +1 -1
- package/dist/conditional.spec-d.js +1 -1
- package/dist/drop-first-by.d.cts +1 -1
- package/dist/drop-first-by.d.ts +1 -1
- package/dist/drop-last-while.cjs +1 -1
- package/dist/drop-last-while.d.cts +5 -2
- package/dist/drop-last-while.d.ts +5 -2
- package/dist/drop-last-while.js +1 -1
- package/dist/drop-last-while.spec-d.cjs +1 -0
- package/dist/drop-last-while.spec-d.d.cts +2 -0
- package/dist/drop-last-while.spec-d.d.ts +2 -0
- package/dist/drop-last-while.spec-d.js +1 -0
- package/dist/drop-last.cjs +1 -1
- package/dist/drop-last.d.cts +5 -2
- package/dist/drop-last.d.ts +5 -2
- package/dist/drop-last.js +1 -1
- package/dist/drop-last.spec-d.cjs +1 -0
- package/dist/drop-last.spec-d.d.cts +2 -0
- package/dist/drop-last.spec-d.d.ts +2 -0
- package/dist/drop-last.spec-d.js +1 -0
- package/dist/drop-while.cjs +1 -1
- package/dist/drop-while.d.cts +5 -2
- package/dist/drop-while.d.ts +5 -2
- package/dist/drop-while.js +1 -1
- package/dist/drop-while.spec-d.cjs +1 -0
- package/dist/drop-while.spec-d.d.cts +2 -0
- package/dist/drop-while.spec-d.d.ts +2 -0
- package/dist/drop-while.spec-d.js +1 -0
- package/dist/drop.cjs +1 -1
- package/dist/drop.d.cts +10 -2
- package/dist/drop.d.ts +10 -2
- package/dist/drop.js +1 -1
- package/dist/drop.spec-d.cjs +1 -0
- package/dist/drop.spec-d.d.cts +2 -0
- package/dist/drop.spec-d.d.ts +2 -0
- package/dist/drop.spec-d.js +1 -0
- package/dist/evolve.d.cts +1 -1
- package/dist/evolve.d.ts +1 -1
- package/dist/first-by.d.cts +1 -1
- package/dist/first-by.d.ts +1 -1
- package/dist/first.d.cts +1 -1
- package/dist/first.d.ts +1 -1
- package/dist/flat.d.cts +1 -1
- package/dist/flat.d.ts +1 -1
- package/dist/for-each-obj.d.cts +1 -1
- package/dist/for-each-obj.d.ts +1 -1
- package/dist/for-each.d.cts +1 -1
- package/dist/for-each.d.ts +1 -1
- package/dist/from-entries.d.cts +1 -1
- package/dist/from-entries.d.ts +1 -1
- package/dist/from-keys.d.cts +1 -1
- package/dist/from-keys.d.ts +1 -1
- package/dist/group-by.d.cts +1 -1
- package/dist/group-by.d.ts +1 -1
- package/dist/has-at-least.d.cts +1 -1
- package/dist/has-at-least.d.ts +1 -1
- package/dist/has-sub-object.d.cts +1 -1
- package/dist/has-sub-object.d.ts +1 -1
- package/dist/index-by.d.cts +1 -1
- package/dist/index-by.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/is-array.d.cts +1 -1
- package/dist/is-array.d.ts +1 -1
- package/dist/is-big-int.d.cts +1 -1
- package/dist/is-big-int.d.ts +1 -1
- package/dist/is-boolean.d.cts +1 -1
- package/dist/is-boolean.d.ts +1 -1
- package/dist/is-empty.d.cts +1 -1
- package/dist/is-empty.d.ts +1 -1
- package/dist/is-included-in.d.cts +1 -1
- package/dist/is-included-in.d.ts +1 -1
- package/dist/is-nullish.d.cts +1 -1
- package/dist/is-nullish.d.ts +1 -1
- package/dist/is-number.d.cts +1 -1
- package/dist/is-number.d.ts +1 -1
- package/dist/is-object-type.d.cts +1 -1
- package/dist/is-object-type.d.ts +1 -1
- package/dist/is-plain-object.d.cts +1 -1
- package/dist/is-plain-object.d.ts +1 -1
- package/dist/is-string.d.cts +1 -1
- package/dist/is-string.d.ts +1 -1
- package/dist/is-symbol.d.cts +1 -1
- package/dist/is-symbol.d.ts +1 -1
- package/dist/keys.d.cts +1 -1
- package/dist/keys.d.ts +1 -1
- package/dist/last.d.cts +1 -1
- package/dist/last.d.ts +1 -1
- package/dist/map-keys.d.cts +1 -1
- package/dist/map-keys.d.ts +1 -1
- package/dist/map-values.d.cts +1 -1
- package/dist/map-values.d.ts +1 -1
- package/dist/map-with-feedback.d.cts +1 -1
- package/dist/map-with-feedback.d.ts +1 -1
- package/dist/map.d.cts +1 -1
- package/dist/map.d.ts +1 -1
- package/dist/nth-by.d.cts +1 -1
- package/dist/nth-by.d.ts +1 -1
- package/dist/omit-by.d.cts +1 -1
- package/dist/omit-by.d.ts +1 -1
- package/dist/only.d.cts +1 -1
- package/dist/only.d.ts +1 -1
- package/dist/pick-by.d.cts +1 -1
- package/dist/pick-by.d.ts +1 -1
- package/dist/product.d.cts +1 -1
- package/dist/product.d.ts +1 -1
- package/dist/pull-object.d.cts +1 -1
- package/dist/pull-object.d.ts +1 -1
- package/dist/rank-by.d.cts +1 -1
- package/dist/rank-by.d.ts +1 -1
- package/dist/sample.d.cts +1 -1
- package/dist/sample.d.ts +1 -1
- package/dist/set.d.cts +1 -1
- package/dist/set.d.ts +1 -1
- package/dist/shuffle.cjs +1 -1
- package/dist/shuffle.d.cts +5 -2
- package/dist/shuffle.d.ts +5 -2
- package/dist/shuffle.js +1 -1
- package/dist/shuffle.spec-d.cjs +1 -0
- package/dist/shuffle.spec-d.d.cts +2 -0
- package/dist/shuffle.spec-d.d.ts +2 -0
- package/dist/shuffle.spec-d.js +1 -0
- package/dist/sort-by.d.cts +1 -1
- package/dist/sort-by.d.ts +1 -1
- package/dist/sort.d.cts +1 -1
- package/dist/sort.d.ts +1 -1
- package/dist/sum.d.cts +1 -1
- package/dist/sum.d.ts +1 -1
- package/dist/swap-indices.d.cts +1 -1
- package/dist/swap-indices.d.ts +1 -1
- package/dist/take-first-by.d.cts +1 -1
- package/dist/take-first-by.d.ts +1 -1
- package/dist/take-last-while.cjs +1 -1
- package/dist/take-last-while.d.cts +5 -2
- package/dist/take-last-while.d.ts +5 -2
- package/dist/take-last-while.js +1 -1
- package/dist/take-last-while.spec-d-.cjs +1 -0
- package/dist/take-last-while.spec-d-.d.cts +2 -0
- package/dist/take-last-while.spec-d-.d.ts +2 -0
- package/dist/take-last-while.spec-d-.js +1 -0
- package/dist/take-last.cjs +1 -1
- package/dist/take-last.d.cts +5 -2
- package/dist/take-last.d.ts +5 -2
- package/dist/take-last.js +1 -1
- package/dist/take-last.spec-d.cjs +1 -0
- package/dist/take-last.spec-d.d.cts +2 -0
- package/dist/take-last.spec-d.d.ts +2 -0
- package/dist/take-last.spec-d.js +1 -0
- package/dist/take-while.cjs +1 -1
- package/dist/take-while.d.cts +5 -2
- package/dist/take-while.d.ts +5 -2
- package/dist/take-while.js +1 -1
- package/dist/take-white.spec-d.cjs +1 -0
- package/dist/take-white.spec-d.d.cts +2 -0
- package/dist/take-white.spec-d.d.ts +2 -0
- package/dist/take-white.spec-d.js +1 -0
- package/dist/take.cjs +1 -1
- package/dist/take.d.cts +5 -2
- package/dist/take.d.ts +5 -2
- package/dist/take.js +1 -1
- package/dist/take.spec-d.cjs +1 -0
- package/dist/take.spec-d.d.cts +2 -0
- package/dist/take.spec-d.d.ts +2 -0
- package/dist/take.spec-d.js +1 -0
- package/dist/tap.spec-d.cjs +1 -1
- package/dist/tap.spec-d.js +1 -1
- package/dist/{types-BMu1PIvo.d.cts → types-BE3YOWVA.d.cts} +45 -2
- package/dist/{types-BMu1PIvo.d.ts → types-BE3YOWVA.d.ts} +45 -2
- package/dist/unique-by.cjs +1 -1
- package/dist/unique-by.d.cts +5 -2
- package/dist/unique-by.d.ts +5 -2
- package/dist/unique-by.js +1 -1
- package/dist/unique-with.cjs +1 -1
- package/dist/unique-with.d.cts +5 -2
- package/dist/unique-with.d.ts +5 -2
- package/dist/unique-with.js +1 -1
- package/dist/unique.cjs +1 -1
- package/dist/unique.d.cts +6 -3
- package/dist/unique.d.ts +6 -3
- package/dist/unique.js +1 -1
- package/dist/values.d.cts +1 -1
- package/dist/values.d.ts +1 -1
- package/dist/zip-with.d.cts +1 -1
- package/dist/zip-with.d.ts +1 -1
- package/dist/zip.d.cts +1 -1
- package/dist/zip.d.ts +1 -1
- package/package.json +12 -12
- package/dist/chunk-3UUZWCRS.cjs +0 -1
- package/dist/chunk-65DHT5Z7.cjs +0 -1
- package/dist/chunk-66KQORMS.js +0 -1
- package/dist/chunk-AE5HI6VG.cjs +0 -1
- package/dist/chunk-CIF6WEFP.js +0 -1
- package/dist/chunk-COBRSP66.js +0 -1
- package/dist/chunk-DUKQ2ODK.js +0 -1
- package/dist/chunk-DWPHE3F2.cjs +0 -1
- package/dist/chunk-HUWRVMPE.js +0 -1
- package/dist/chunk-LIKMH7XD.js +0 -1
- package/dist/chunk-LOPUNSWJ.js +0 -1
- package/dist/chunk-MENOHSYF.js +0 -1
- package/dist/chunk-NNK6R67E.cjs +0 -1
- package/dist/chunk-P7OXTPPH.cjs +0 -1
- package/dist/chunk-QTCQZ7LU.js +0 -1
- package/dist/chunk-RSJJRJTH.cjs +0 -1
- package/dist/chunk-TR5T6KUC.js +0 -1
- package/dist/chunk-U5EQP4BO.cjs +0 -1
- package/dist/chunk-VNLOBA2B.cjs +0 -1
- package/dist/chunk-X6AB3I7Z.cjs +0 -1
- package/dist/chunk-YQKPA3BB.js +0 -1
- package/dist/chunk-YWSZXRUY.js +0 -1
- package/dist/chunk-Z7EBGO2B.js +0 -1
- package/dist/chunk-ZCFTW5HO.cjs +0 -1
package/dist/is-array.d.ts
CHANGED
package/dist/is-big-int.d.cts
CHANGED
package/dist/is-big-int.d.ts
CHANGED
package/dist/is-boolean.d.cts
CHANGED
package/dist/is-boolean.d.ts
CHANGED
package/dist/is-empty.d.cts
CHANGED
package/dist/is-empty.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsLiteral } from 'type-fest';
|
|
2
|
-
import { I as IterableContainer,
|
|
2
|
+
import { I as IterableContainer, e as IsUnion } from './types-BE3YOWVA.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A "constant" tuple is a type that has a single runtime value that can fulfil
|
package/dist/is-included-in.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsLiteral } from 'type-fest';
|
|
2
|
-
import { I as IterableContainer,
|
|
2
|
+
import { I as IterableContainer, e as IsUnion } from './types-BE3YOWVA.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A "constant" tuple is a type that has a single runtime value that can fulfil
|
package/dist/is-nullish.d.cts
CHANGED
package/dist/is-nullish.d.ts
CHANGED
package/dist/is-number.d.cts
CHANGED
package/dist/is-number.d.ts
CHANGED
package/dist/is-object-type.d.ts
CHANGED
package/dist/is-string.d.cts
CHANGED
package/dist/is-string.d.ts
CHANGED
package/dist/is-symbol.d.cts
CHANGED
package/dist/is-symbol.d.ts
CHANGED
package/dist/keys.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer,
|
|
1
|
+
import { I as IterableContainer, b as EnumerableStringKeyOf } from './types-BE3YOWVA.cjs';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Keys<T> = T extends IterableContainer ? ArrayKeys<T> : ObjectKeys<T>;
|
package/dist/keys.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer,
|
|
1
|
+
import { I as IterableContainer, b as EnumerableStringKeyOf } from './types-BE3YOWVA.js';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Keys<T> = T extends IterableContainer ? ArrayKeys<T> : ObjectKeys<T>;
|
package/dist/last.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LastArrayElement } from 'type-fest';
|
|
2
|
-
import { I as IterableContainer } from './types-
|
|
2
|
+
import { I as IterableContainer } from './types-BE3YOWVA.cjs';
|
|
3
3
|
|
|
4
4
|
type Last<T extends IterableContainer> = LastArrayElement<T, T extends readonly [] ? never : undefined>;
|
|
5
5
|
/**
|
package/dist/last.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LastArrayElement } from 'type-fest';
|
|
2
|
-
import { I as IterableContainer } from './types-
|
|
2
|
+
import { I as IterableContainer } from './types-BE3YOWVA.js';
|
|
3
3
|
|
|
4
4
|
type Last<T extends IterableContainer> = LastArrayElement<T, T extends readonly [] ? never : undefined>;
|
|
5
5
|
/**
|
package/dist/map-keys.d.cts
CHANGED
package/dist/map-keys.d.ts
CHANGED
package/dist/map-values.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Simplify } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyedValueOf,
|
|
2
|
+
import { E as EnumerableStringKeyedValueOf, b as EnumerableStringKeyOf } from './types-BE3YOWVA.cjs';
|
|
3
3
|
|
|
4
4
|
type MappedValues<T extends object, Value> = Simplify<{
|
|
5
5
|
-readonly [P in keyof T as `${P extends number | string ? P : never}`]: Value;
|
package/dist/map-values.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Simplify } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyedValueOf,
|
|
2
|
+
import { E as EnumerableStringKeyedValueOf, b as EnumerableStringKeyOf } from './types-BE3YOWVA.js';
|
|
3
3
|
|
|
4
4
|
type MappedValues<T extends object, Value> = Simplify<{
|
|
5
5
|
-readonly [P in keyof T as `${P extends number | string ? P : never}`]: Value;
|
package/dist/map.d.cts
CHANGED
package/dist/map.d.ts
CHANGED
package/dist/nth-by.d.cts
CHANGED
package/dist/nth-by.d.ts
CHANGED
package/dist/omit-by.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Simplify, IfNever } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyedValueOf,
|
|
2
|
+
import { E as EnumerableStringKeyedValueOf, b as EnumerableStringKeyOf, f as IfBoundedRecord, R as ReconstructedRecord } from './types-BE3YOWVA.cjs';
|
|
3
3
|
|
|
4
4
|
type PickSymbolKeys<T extends object> = {
|
|
5
5
|
-readonly [P in keyof T as P extends symbol ? P : never]: T[P];
|
package/dist/omit-by.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Simplify, IfNever } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyedValueOf,
|
|
2
|
+
import { E as EnumerableStringKeyedValueOf, b as EnumerableStringKeyOf, f as IfBoundedRecord, R as ReconstructedRecord } from './types-BE3YOWVA.js';
|
|
3
3
|
|
|
4
4
|
type PickSymbolKeys<T extends object> = {
|
|
5
5
|
-readonly [P in keyof T as P extends symbol ? P : never]: T[P];
|
package/dist/only.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.cjs';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Only<T extends IterableContainer> = T extends readonly [...Array<unknown>, unknown, unknown] | readonly [] | readonly [unknown, ...Array<unknown>, unknown] | readonly [unknown, unknown, ...Array<unknown>] ? undefined : T extends readonly [unknown] ? T[number] : T[number] | undefined;
|
package/dist/only.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.js';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Only<T extends IterableContainer> = T extends readonly [...Array<unknown>, unknown, unknown] | readonly [] | readonly [unknown, ...Array<unknown>, unknown] | readonly [unknown, unknown, ...Array<unknown>] ? undefined : T extends readonly [unknown] ? T[number] : T[number] | undefined;
|
package/dist/pick-by.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Simplify, IfNever } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyedValueOf,
|
|
2
|
+
import { E as EnumerableStringKeyedValueOf, b as EnumerableStringKeyOf, f as IfBoundedRecord, R as ReconstructedRecord } from './types-BE3YOWVA.cjs';
|
|
3
3
|
|
|
4
4
|
type EnumerableKey<T> = `${T extends number | string ? T : never}`;
|
|
5
5
|
type EnumeratedPartial<T> = T extends unknown ? Simplify<IfBoundedRecord<T, {
|
package/dist/pick-by.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Simplify, IfNever } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyedValueOf,
|
|
2
|
+
import { E as EnumerableStringKeyedValueOf, b as EnumerableStringKeyOf, f as IfBoundedRecord, R as ReconstructedRecord } from './types-BE3YOWVA.js';
|
|
3
3
|
|
|
4
4
|
type EnumerableKey<T> = `${T extends number | string ? T : never}`;
|
|
5
5
|
type EnumeratedPartial<T> = T extends unknown ? Simplify<IfBoundedRecord<T, {
|
package/dist/product.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.cjs';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Product<T extends IterableContainer<bigint> | IterableContainer<number>> = T extends readonly [] ? 1 : T extends readonly [bigint, ...ReadonlyArray<unknown>] ? bigint : T[number] extends bigint ? 1 | bigint : number;
|
package/dist/product.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.js';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Product<T extends IterableContainer<bigint> | IterableContainer<number>> = T extends readonly [] ? 1 : T extends readonly [bigint, ...ReadonlyArray<unknown>] ? bigint : T[number] extends bigint ? 1 | bigint : number;
|
package/dist/pull-object.d.cts
CHANGED
package/dist/pull-object.d.ts
CHANGED
package/dist/rank-by.d.cts
CHANGED
package/dist/rank-by.d.ts
CHANGED
package/dist/sample.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.cjs';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Sampled<T extends IterableContainer, N extends number> = number extends N ? SampledGeneric<T> : undefined extends T[N] ? T : SampledLiteral<T, N>;
|
package/dist/sample.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.js';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Sampled<T extends IterableContainer, N extends number> = number extends N ? SampledGeneric<T> : undefined extends T[N] ? T : SampledLiteral<T, N>;
|
package/dist/set.d.cts
CHANGED
package/dist/set.d.ts
CHANGED
package/dist/shuffle.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4WU7JGWScjs = require('./chunk-4WU7JGWS.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.shuffle = _chunk4WU7JGWScjs.a;
|
package/dist/shuffle.d.cts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { I as IterableContainer, g as ReorderedArray } from './types-BE3YOWVA.cjs';
|
|
2
|
+
import 'type-fest';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Shuffles the input array, returning a new array with the same elements in a random order.
|
|
3
6
|
*
|
|
@@ -9,7 +12,7 @@
|
|
|
9
12
|
* @dataFirst
|
|
10
13
|
* @category Array
|
|
11
14
|
*/
|
|
12
|
-
declare function shuffle<T>(items:
|
|
15
|
+
declare function shuffle<T extends IterableContainer>(items: T): ReorderedArray<T>;
|
|
13
16
|
/**
|
|
14
17
|
* Shuffles the input array, returning a new array with the same elements in a random order.
|
|
15
18
|
*
|
|
@@ -20,6 +23,6 @@ declare function shuffle<T>(items: ReadonlyArray<T>): Array<T>;
|
|
|
20
23
|
* @dataLast
|
|
21
24
|
* @category Array
|
|
22
25
|
*/
|
|
23
|
-
declare function shuffle
|
|
26
|
+
declare function shuffle(): <T extends IterableContainer>(items: T) => ReorderedArray<T>;
|
|
24
27
|
|
|
25
28
|
export { shuffle };
|
package/dist/shuffle.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { I as IterableContainer, g as ReorderedArray } from './types-BE3YOWVA.js';
|
|
2
|
+
import 'type-fest';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Shuffles the input array, returning a new array with the same elements in a random order.
|
|
3
6
|
*
|
|
@@ -9,7 +12,7 @@
|
|
|
9
12
|
* @dataFirst
|
|
10
13
|
* @category Array
|
|
11
14
|
*/
|
|
12
|
-
declare function shuffle<T>(items:
|
|
15
|
+
declare function shuffle<T extends IterableContainer>(items: T): ReorderedArray<T>;
|
|
13
16
|
/**
|
|
14
17
|
* Shuffles the input array, returning a new array with the same elements in a random order.
|
|
15
18
|
*
|
|
@@ -20,6 +23,6 @@ declare function shuffle<T>(items: ReadonlyArray<T>): Array<T>;
|
|
|
20
23
|
* @dataLast
|
|
21
24
|
* @category Array
|
|
22
25
|
*/
|
|
23
|
-
declare function shuffle
|
|
26
|
+
declare function shuffle(): <T extends IterableContainer>(items: T) => ReorderedArray<T>;
|
|
24
27
|
|
|
25
28
|
export { shuffle };
|
package/dist/shuffle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-PFLGL4YP.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as shuffle};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunk4WU7JGWScjs = require('./chunk-4WU7JGWS.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');test("regular array",()=>{let e=_chunk4WU7JGWScjs.a.call(void 0, []);expectTypeOf(e).toEqualTypeOf()});test("non-empty tail-rest array",()=>{let e=_chunk4WU7JGWScjs.a.call(void 0, [1]);expectTypeOf(e).toEqualTypeOf()});test("non-empty head-rest array",()=>{let e=_chunk4WU7JGWScjs.a.call(void 0, [1]);expectTypeOf(e).toEqualTypeOf()});test("fixed size tuple",()=>{let e=_chunk4WU7JGWScjs.a.call(void 0, [1,"a",!0]);expectTypeOf(e).toEqualTypeOf()});it("removes readonlyness from array",()=>{let e=_chunk4WU7JGWScjs.a.call(void 0, []);expectTypeOf(e).toEqualTypeOf()});it("infers type via a pipe",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, ["a",1,!0],_chunk4WU7JGWScjs.a.call(void 0, ));expectTypeOf(e).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-PFLGL4YP.js";import{a as t}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";test("regular array",()=>{let e=r([]);expectTypeOf(e).toEqualTypeOf()});test("non-empty tail-rest array",()=>{let e=r([1]);expectTypeOf(e).toEqualTypeOf()});test("non-empty head-rest array",()=>{let e=r([1]);expectTypeOf(e).toEqualTypeOf()});test("fixed size tuple",()=>{let e=r([1,"a",!0]);expectTypeOf(e).toEqualTypeOf()});it("removes readonlyness from array",()=>{let e=r([]);expectTypeOf(e).toEqualTypeOf()});it("infers type via a pipe",()=>{let e=t(["a",1,!0],r());expectTypeOf(e).toEqualTypeOf()});
|
package/dist/sort-by.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer,
|
|
1
|
+
import { I as IterableContainer, a as NonEmptyArray, g as ReorderedArray } from './types-BE3YOWVA.cjs';
|
|
2
2
|
import { O as OrderRule } from './curry-order-rules-DETxSzle.cjs';
|
|
3
3
|
import 'type-fest';
|
|
4
4
|
|
package/dist/sort-by.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer,
|
|
1
|
+
import { I as IterableContainer, a as NonEmptyArray, g as ReorderedArray } from './types-BE3YOWVA.js';
|
|
2
2
|
import { O as OrderRule } from './curry-order-rules-DETxSzle.js';
|
|
3
3
|
import 'type-fest';
|
|
4
4
|
|
package/dist/sort.d.cts
CHANGED
package/dist/sort.d.ts
CHANGED
package/dist/sum.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.cjs';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Sum<T extends IterableContainer<bigint> | IterableContainer<number>> = T extends readonly [] ? 0 : T extends readonly [bigint, ...ReadonlyArray<unknown>] ? bigint : T[number] extends bigint ? 0 | bigint : number;
|
package/dist/sum.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.js';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Sum<T extends IterableContainer<bigint> | IterableContainer<number>> = T extends readonly [] ? 0 : T extends readonly [bigint, ...ReadonlyArray<unknown>] ? bigint : T[number] extends bigint ? 0 | bigint : number;
|
package/dist/swap-indices.d.cts
CHANGED
package/dist/swap-indices.d.ts
CHANGED
package/dist/take-first-by.d.cts
CHANGED
package/dist/take-first-by.d.ts
CHANGED
package/dist/take-last-while.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVPG3W5JHcjs = require('./chunk-VPG3W5JH.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.takeLastWhile = _chunkVPG3W5JHcjs.a;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.cjs';
|
|
2
|
+
import 'type-fest';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Returns elements from the end of the array until the predicate returns false.
|
|
3
6
|
* The returned elements will be in the same order as in the original array.
|
|
@@ -11,7 +14,7 @@
|
|
|
11
14
|
* @dataFirst
|
|
12
15
|
* @category Array
|
|
13
16
|
*/
|
|
14
|
-
declare function takeLastWhile<T>(data:
|
|
17
|
+
declare function takeLastWhile<T extends IterableContainer>(data: T, predicate: (item: T[number], index: number, data: T) => boolean): Array<T[number]>;
|
|
15
18
|
/**
|
|
16
19
|
* Returns elements from the end of the array until the predicate returns false.
|
|
17
20
|
* The returned elements will be in the same order as in the original array.
|
|
@@ -24,6 +27,6 @@ declare function takeLastWhile<T>(data: ReadonlyArray<T>, predicate: (item: T, i
|
|
|
24
27
|
* @dataLast
|
|
25
28
|
* @category Array
|
|
26
29
|
*/
|
|
27
|
-
declare function takeLastWhile<T>(predicate: (item: T, index: number, data:
|
|
30
|
+
declare function takeLastWhile<T extends IterableContainer>(predicate: (item: T[number], index: number, data: T) => boolean): (data: T) => Array<T[number]>;
|
|
28
31
|
|
|
29
32
|
export { takeLastWhile };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { I as IterableContainer } from './types-BE3YOWVA.js';
|
|
2
|
+
import 'type-fest';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Returns elements from the end of the array until the predicate returns false.
|
|
3
6
|
* The returned elements will be in the same order as in the original array.
|
|
@@ -11,7 +14,7 @@
|
|
|
11
14
|
* @dataFirst
|
|
12
15
|
* @category Array
|
|
13
16
|
*/
|
|
14
|
-
declare function takeLastWhile<T>(data:
|
|
17
|
+
declare function takeLastWhile<T extends IterableContainer>(data: T, predicate: (item: T[number], index: number, data: T) => boolean): Array<T[number]>;
|
|
15
18
|
/**
|
|
16
19
|
* Returns elements from the end of the array until the predicate returns false.
|
|
17
20
|
* The returned elements will be in the same order as in the original array.
|
|
@@ -24,6 +27,6 @@ declare function takeLastWhile<T>(data: ReadonlyArray<T>, predicate: (item: T, i
|
|
|
24
27
|
* @dataLast
|
|
25
28
|
* @category Array
|
|
26
29
|
*/
|
|
27
|
-
declare function takeLastWhile<T>(predicate: (item: T, index: number, data:
|
|
30
|
+
declare function takeLastWhile<T extends IterableContainer>(predicate: (item: T[number], index: number, data: T) => boolean): (data: T) => Array<T[number]>;
|
|
28
31
|
|
|
29
32
|
export { takeLastWhile };
|
package/dist/take-last-while.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-KAA6IVBL.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as takeLastWhile};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkVPG3W5JHcjs = require('./chunk-VPG3W5JH.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');var _chunkWLNQOMKLcjs = require('./chunk-WLNQOMKL.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');describe("data-first",()=>{test("empty array",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [1],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [1],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [1,"a"],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [1,"a",!0],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=_chunkVPG3W5JHcjs.a.call(void 0, [],_chunkWLNQOMKLcjs.a.call(void 0, !0));expectTypeOf(e).toEqualTypeOf()})});describe("data-last",()=>{test("empty array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("regular array with union type",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("prefix array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("suffix array",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("array with suffix and prefix",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1,"a"],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("tuple",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [1,"a",!0],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),test("union of arrays",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, _chunkWLNQOMKLcjs.a.call(void 0, !0)));expectTypeOf(e).toEqualTypeOf()}),describe("predicate is typed correctly",()=>{test("empty array",()=>{_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("regular array",()=>{_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("regular array with union type",()=>{_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("prefix array",()=>{_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("suffix array",()=>{_chunkI6VXEY44cjs.a.call(void 0, [1],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("array with suffix and prefix",()=>{_chunkI6VXEY44cjs.a.call(void 0, [1,"a"],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("tuple",()=>{_chunkI6VXEY44cjs.a.call(void 0, [1,"a",!0],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))}),test("union of arrays",()=>{_chunkI6VXEY44cjs.a.call(void 0, [],_chunkVPG3W5JHcjs.a.call(void 0, (e,u,y)=>(expectTypeOf(e).toEqualTypeOf(),expectTypeOf(u).toEqualTypeOf(),expectTypeOf(y).toEqualTypeOf(),!0)))})})});
|