@duplojs/utils 1.4.38 → 1.4.39

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.
Files changed (47) hide show
  1. package/dist/array/at/default.d.ts +4 -4
  2. package/dist/common/addWrappedProperties.d.ts +0 -2
  3. package/dist/common/and.d.ts +0 -2
  4. package/dist/common/asserts.d.ts +0 -2
  5. package/dist/common/asyncInnerPipe.d.ts +0 -2
  6. package/dist/common/asyncLoop.d.ts +0 -2
  7. package/dist/common/asyncPipe.d.ts +0 -2
  8. package/dist/common/asyncRetry.d.ts +0 -4
  9. package/dist/common/builder.d.ts +0 -2
  10. package/dist/common/clone.d.ts +0 -2
  11. package/dist/common/enum.d.ts +0 -2
  12. package/dist/common/equal.d.ts +0 -2
  13. package/dist/common/escapeRegExp.d.ts +0 -2
  14. package/dist/common/externalPromise.d.ts +0 -2
  15. package/dist/common/falsy.d.ts +0 -2
  16. package/dist/common/forward.d.ts +0 -2
  17. package/dist/common/forwardLog.d.ts +0 -2
  18. package/dist/common/globalStore.d.ts +0 -2
  19. package/dist/common/hasKinds.d.ts +0 -2
  20. package/dist/common/hasSomeKinds.d.ts +0 -2
  21. package/dist/common/index.d.ts +0 -3
  22. package/dist/common/innerPipe.d.ts +0 -2
  23. package/dist/common/instanceOf.d.ts +0 -2
  24. package/dist/common/isType.d.ts +0 -2
  25. package/dist/common/justReturn.d.ts +0 -2
  26. package/dist/common/kind.d.ts +0 -4
  27. package/dist/common/loop.d.ts +0 -2
  28. package/dist/common/memo.d.ts +0 -2
  29. package/dist/common/or.d.ts +0 -2
  30. package/dist/common/override.d.ts +0 -2
  31. package/dist/common/pipe.d.ts +0 -2
  32. package/dist/common/promiseObject.d.ts +0 -2
  33. package/dist/common/simpleClone.d.ts +0 -2
  34. package/dist/common/sleep.d.ts +0 -2
  35. package/dist/common/stringToBytes.d.ts +0 -2
  36. package/dist/common/stringToMillisecond.d.ts +0 -2
  37. package/dist/common/toJSON.d.ts +0 -2
  38. package/dist/common/toString.d.ts +0 -2
  39. package/dist/common/toTransform.d.ts +0 -2
  40. package/dist/common/toWrappedValue.d.ts +0 -2
  41. package/dist/common/truthy.d.ts +0 -2
  42. package/dist/common/unwrap.d.ts +0 -2
  43. package/dist/common/when.d.ts +0 -2
  44. package/dist/common/whenElse.d.ts +0 -2
  45. package/dist/common/whenNot.d.ts +0 -2
  46. package/dist/common/wrapValue.d.ts +0 -6
  47. package/package.json +1 -1
@@ -1,4 +1,6 @@
1
+ import type { IsEqual } from "../../common";
1
2
  import type { AtTuple } from "../types";
3
+ export type AtArray<GenericArray extends readonly unknown[], GenericIndex extends number> = IsEqual<GenericArray["length"], number> extends true ? GenericArray[number] | undefined : AtTuple<GenericArray, GenericIndex>;
2
4
  /**
3
5
  * Accesses an element at a given index, supporting negative indices.
4
6
  *
@@ -31,7 +33,5 @@ import type { AtTuple } from "../types";
31
33
  *
32
34
  * @namespace A
33
35
  */
34
- export declare function at<GenericTuple extends readonly unknown[], GenericIndex extends number>(index: GenericIndex): (array: GenericTuple) => AtTuple<GenericTuple, GenericIndex>;
35
- export declare function at<GenericElement extends unknown>(index: number): (array: readonly GenericElement[]) => GenericElement | undefined;
36
- export declare function at<GenericTuple extends readonly unknown[], GenericIndex extends number>(array: GenericTuple, index: GenericIndex): AtTuple<GenericTuple, GenericIndex>;
37
- export declare function at<GenericElement extends unknown>(array: readonly GenericElement[], index: number): GenericElement | undefined;
36
+ export declare function at<GenericArray extends readonly unknown[], GenericIndex extends number>(index: GenericIndex): (array: GenericArray) => AtArray<GenericArray, GenericIndex>;
37
+ export declare function at<GenericArray extends readonly unknown[], GenericIndex extends number>(array: GenericArray, index: GenericIndex): AtArray<GenericArray, GenericIndex>;
@@ -10,7 +10,5 @@ export type GetWrappedProperties<GenericWrappedValue extends object = object, Ge
10
10
  *
11
11
  * @see https://utils.duplojs.dev/en/v1/api/common/addWrappedProperties
12
12
  *
13
- * @namespace C
14
- *
15
13
  */
16
14
  export declare function addWrappedProperties<GenericWrappedValue extends object, GenericGetWrappedProperties extends GetWrappedProperties<GenericWrappedValue>>(wrappedValue: GenericWrappedValue, getProperties: GenericGetWrappedProperties): GenericWrappedValue & ReturnType<GenericGetWrappedProperties>;
@@ -58,8 +58,6 @@ type ComputeResult<GenericInput extends unknown, GenericPredicatedInput extends
58
58
  *
59
59
  * @see https://utils.duplojs.dev/en/v1/api/common/and
60
60
  *
61
- * @namespace C
62
- *
63
61
  */
64
62
  export declare function and<GenericInput extends unknown, GenericArrayPredicatedInput extends [
65
63
  (input: GenericInput) => input is any,
@@ -31,8 +31,6 @@ export declare class AssertsError extends AssertsError_base {
31
31
  *
32
32
  * @see https://utils.duplojs.dev/en/v1/api/common/asserts
33
33
  *
34
- * @namespace C
35
- *
36
34
  */
37
35
  export declare function asserts<GenericInput extends unknown, GenericPredicate extends GenericInput>(input: GenericInput, predicate: (input: GenericInput) => input is GenericPredicate): asserts input is GenericPredicate;
38
36
  export {};
@@ -48,8 +48,6 @@ type MaybePromiseLike<GenericValue extends unknown> = MaybePromise<GenericValue>
48
48
  *
49
49
  * @see https://utils.duplojs.dev/en/v1/api/common/asyncInnerPipe
50
50
  *
51
- * @namespace C
52
- *
53
51
  */
54
52
  export declare function asyncInnerPipe<GenericInput extends AnyValue, GenericOutputPipe1 extends AnyValue | EscapeVoid>(pipe1: (input: GenericInput) => MaybePromiseLike<GenericOutputPipe1>): (input: MaybePromiseLike<GenericInput>) => Promise<Awaited<BreakGenericLink<GenericOutputPipe1>>>;
55
53
  export declare function asyncInnerPipe<GenericInput extends AnyValue, GenericOutputPipe1 extends AnyValue | EscapeVoid, GenericOutputPipe2 extends AnyValue | EscapeVoid>(pipe1: (input: GenericInput) => MaybePromiseLike<GenericOutputPipe1>, pipe2: (input: GenericOutputPipe1) => MaybePromiseLike<GenericOutputPipe2>): (input: MaybePromiseLike<GenericInput>) => Promise<Awaited<BreakGenericLink<GenericOutputPipe2>>>;
@@ -32,8 +32,6 @@ interface LoopOutputNextResult<GenericOutput extends any> {
32
32
  *
33
33
  * @see https://utils.duplojs.dev/en/v1/api/common/asyncLoop
34
34
  *
35
- * @namespace C
36
- *
37
35
  */
38
36
  export declare function asyncLoop<GenericRawExitOutput extends AnyValue = undefined, GenericRawNextOutput extends AnyValue = undefined>(loop: (params: LoopParams<GenericRawNextOutput>) => Promise<LoopOutputNextResult<GenericRawNextOutput | undefined> | LoopOutputExistResult<GenericRawExitOutput>>): Promise<GenericRawExitOutput>;
39
37
  export {};
@@ -35,8 +35,6 @@ type MaybePromiseLike<GenericValue extends unknown> = MaybePromise<GenericValue>
35
35
  *
36
36
  * @see https://utils.duplojs.dev/en/v1/api/common/asyncPipe
37
37
  *
38
- * @namespace C
39
- *
40
38
  */
41
39
  export declare function asyncPipe<GenericInput extends MaybePromiseLike<AnyValue>, GenericOutputPipe1 extends MaybePromiseLike<AnyValue | EscapeVoid>>(input: GenericInput, pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1): Promise<Awaited<BreakGenericLink<GenericOutputPipe1>>>;
42
40
  export declare function asyncPipe<GenericInput extends MaybePromiseLike<AnyValue>, GenericOutputPipe1 extends MaybePromiseLike<AnyValue | EscapeVoid>, GenericOutputPipe2 extends MaybePromiseLike<AnyValue | EscapeVoid>>(input: GenericInput, pipe1: (input: Awaited<GenericInput>) => GenericOutputPipe1, pipe2: (input: Awaited<GenericOutputPipe1>) => GenericOutputPipe2): Promise<Awaited<BreakGenericLink<GenericOutputPipe2>>>;
@@ -32,8 +32,6 @@ interface CreateAsyncRetryOptions {
32
32
  *
33
33
  * @see https://utils.duplojs.dev/en/v1/api/common/asyncRetry
34
34
  *
35
- * @namespace C
36
- *
37
35
  */
38
36
  export declare function useAsyncRetry<GenericOutput extends unknown>(retryFunction: () => Promise<GenericOutput>, shouldRetry: (result: GenericOutput) => boolean, options: CreateAsyncRetryOptions): Promise<GenericOutput>;
39
37
  /**
@@ -65,8 +63,6 @@ export declare function useAsyncRetry<GenericOutput extends unknown>(retryFuncti
65
63
  *
66
64
  * @see https://utils.duplojs.dev/en/v1/api/common/asyncRetry
67
65
  *
68
- * @namespace C
69
- *
70
66
  */
71
67
  export declare function createAsyncRetry<GenericAnyFunction extends ((...args: any[]) => Promise<any>)>(retryFunction: GenericAnyFunction, checkFunction: (result: Awaited<ReturnType<GenericAnyFunction>>) => boolean, options: CreateAsyncRetryOptions): GenericAnyFunction;
72
68
  export {};
@@ -115,8 +115,6 @@ export declare class MissingBuilderMethodsError extends MissingBuilderMethodsErr
115
115
  *
116
116
  * @see https://utils.duplojs.dev/en/v1/api/common/builder
117
117
  *
118
- * @namespace C
119
- *
120
118
  */
121
119
  export declare function createBuilder<GenericBuilder extends Builder>(builderName: string): BuilderHandler<GenericBuilder>;
122
120
  export {};
@@ -8,7 +8,5 @@ import { type SimplifyTypeForce } from "../common/types/simplifyTypeForce";
8
8
  *
9
9
  * @see https://utils.duplojs.dev/en/v1/api/common/clone
10
10
  *
11
- * @namespace C
12
- *
13
11
  */
14
12
  export declare function clone<T extends unknown = unknown>(unknownValue: T): SimplifyTypeForce<T>;
@@ -36,8 +36,6 @@ export type Enum<GenericValues extends [string, ...string[]] = [string, ...strin
36
36
  *
37
37
  * @see https://utils.duplojs.dev/en/v1/api/common/createEnum
38
38
  *
39
- * @namespace C
40
- *
41
39
  */
42
40
  export declare function createEnum<GenericValue extends string, GenericValues extends [GenericValue, ...GenericValue[]]>(values: GenericValues): Enum<GenericValues>;
43
41
  export type GetEnumValue<GenericEnum extends Enum<any>> = ReturnType<GenericEnum["toTuple"]>[number];
@@ -42,8 +42,6 @@ type ExpectLiteral<GenericValue extends EligibleEqual> = Or<[
42
42
  *
43
43
  * @see https://utils.duplojs.dev/en/v1/api/common/equal
44
44
  *
45
- * @namespace C
46
- *
47
45
  */
48
46
  export declare function equal<GenericInput extends EligibleEqual | object, GenericValue extends Exclude<GenericInput, object>>(value: ExpectLiteral<GenericValue> | ExpectLiteral<GenericValue>[]): (input: GenericInput) => input is NoInfer<GenericValue>;
49
47
  export declare function equal<GenericInput extends EligibleEqual | object, GenericValue extends Exclude<GenericInput, object>>(value: GenericValue | GenericValue[]): (input: GenericInput) => boolean;
@@ -15,7 +15,5 @@
15
15
  *
16
16
  * @see https://utils.duplojs.dev/en/v1/api/common/escapeRegExp
17
17
  *
18
- * @namespace C
19
- *
20
18
  */
21
19
  export declare function escapeRegExp<GenericInput extends string>(input: GenericInput): string;
@@ -15,8 +15,6 @@
15
15
  *
16
16
  * @see https://utils.duplojs.dev/en/v1/api/common/externalPromise
17
17
  *
18
- * @namespace C
19
- *
20
18
  */
21
19
  export declare function createExternalPromise<GenericPromiseValue extends unknown>(): {
22
20
  resolve: (_value: GenericPromiseValue | Awaited<GenericPromiseValue> | Promise<GenericPromiseValue>) => void;
@@ -23,7 +23,5 @@ import { type FalsyValue, type UnionContain } from "./types";
23
23
  *
24
24
  * @see https://utils.duplojs.dev/en/v1/api/common/falsy
25
25
  *
26
- * @namespace C
27
- *
28
26
  */
29
27
  export declare function falsy<GenericInput extends unknown>(input: GenericInput): input is (Extract<GenericInput, FalsyValue> | (UnionContain<GenericInput, string> extends true ? "" : never) | (UnionContain<GenericInput, number> extends true ? 0 : never) | (UnionContain<GenericInput, bigint> extends true ? 0n : never));
@@ -18,7 +18,5 @@
18
18
  *
19
19
  * @see https://utils.duplojs.dev/en/v1/api/common/forward
20
20
  *
21
- * @namespace C
22
- *
23
21
  */
24
22
  export declare function forward<GenericValue extends unknown>(value: GenericValue): GenericValue;
@@ -23,7 +23,5 @@
23
23
  *
24
24
  * @see https://utils.duplojs.dev/en/v1/api/common/forwardLog
25
25
  *
26
- * @namespace C
27
- *
28
26
  */
29
27
  export declare function forwardLog<const GenericInput extends unknown>(input: GenericInput): GenericInput;
@@ -13,7 +13,5 @@ export interface GlobalStoreHandler<GenericValue extends unknown> {
13
13
  *
14
14
  * @see https://utils.duplojs.dev/en/v1/api/common/globalStore
15
15
  *
16
- * @namespace C
17
- *
18
16
  */
19
17
  export declare function createGlobalStore<GenericStoreName extends keyof GlobalStore>(storeName: GenericStoreName, defaultValue: GlobalStore[GenericStoreName]): GlobalStoreHandler<GlobalStore[GenericStoreName]>;
@@ -36,8 +36,6 @@ import { type AnyTuple, type UnionToIntersection } from "./types";
36
36
  *
37
37
  * @see https://utils.duplojs.dev/en/v1/api/common/hasKinds
38
38
  *
39
- * @namespace C
40
- *
41
39
  */
42
40
  export declare function hasKinds<GenericInput extends unknown, const GenericKindHandlers extends AnyTuple<KindHandler>, GenericKindHandler extends GenericKindHandlers[number]>(kinds: GenericKindHandlers): (input: GenericInput) => input is Extract<GenericInput, UnionToIntersection<GenericKindHandler extends any ? Kind<GenericKindHandler["definition"]> : never>>;
43
41
  export declare function hasKinds<GenericInput extends unknown, const GenericKindHandlers extends AnyTuple<KindHandler>, GenericKindHandler extends GenericKindHandlers[number]>(input: GenericInput, kinds: GenericKindHandlers): input is Extract<GenericInput, UnionToIntersection<GenericKindHandler extends any ? Kind<GenericKindHandler["definition"]> : never>>;
@@ -36,8 +36,6 @@ import { type AnyTuple } from "./types";
36
36
  *
37
37
  * @see https://utils.duplojs.dev/en/v1/api/common/hasSomeKinds
38
38
  *
39
- * @namespace C
40
- *
41
39
  */
42
40
  export declare function hasSomeKinds<GenericInput extends unknown, const GenericKindHandlers extends AnyTuple<KindHandler>, GenericKindHandler extends GenericKindHandlers[number]>(kinds: GenericKindHandlers): (input: GenericInput) => input is Extract<GenericInput, GenericKindHandler extends any ? Kind<GenericKindHandler["definition"]> : never>;
43
41
  export declare function hasSomeKinds<GenericInput extends unknown, const GenericKindHandlers extends AnyTuple<KindHandler>, GenericKindHandler extends GenericKindHandlers[number]>(input: GenericInput, kinds: GenericKindHandlers): input is Extract<GenericInput, GenericKindHandler extends any ? Kind<GenericKindHandler["definition"]> : never>;
@@ -8,7 +8,6 @@
8
8
  * ```ts
9
9
  * import { pipe, when, clone } from "@duplojs/utils";
10
10
  * import * as DCommon from "@duplojs/utils/common";
11
- * import * as C from "@duplojs/utils/common";
12
11
  * import { pipe, when, clone } from "@duplojs/utils/common";
13
12
  * ```
14
13
  *
@@ -22,8 +21,6 @@
22
21
  *
23
22
  * @see https://utils.duplojs.dev/en/v1/api/common
24
23
  *
25
- * @namespace C
26
- *
27
24
  */
28
25
  export * from "./types";
29
26
  export * from "./addWrappedProperties";
@@ -32,8 +32,6 @@ import { type AnyValue } from "./types/anyValue";
32
32
  *
33
33
  * @see https://utils.duplojs.dev/en/v1/api/common/innerPipe
34
34
  *
35
- * @namespace C
36
- *
37
35
  */
38
36
  export declare function innerPipe<GenericInput extends AnyValue, GenericOutputPipe1 extends AnyValue | EscapeVoid>(pipe1: (input: GenericInput) => GenericOutputPipe1): (input: GenericInput) => BreakGenericLink<GenericOutputPipe1>;
39
37
  export declare function innerPipe<GenericInput extends AnyValue, GenericOutputPipe1 extends AnyValue | EscapeVoid, GenericOutputPipe2 extends AnyValue | EscapeVoid>(pipe1: (input: GenericInput) => GenericOutputPipe1, pipe2: (input: GenericOutputPipe1) => GenericOutputPipe2): (input: GenericInput) => BreakGenericLink<GenericOutputPipe2>;
@@ -29,8 +29,6 @@ import { type AnyConstructor } from "./types";
29
29
  *
30
30
  * @see https://utils.duplojs.dev/en/v1/api/common/instanceOf
31
31
  *
32
- * @namespace C
33
- *
34
32
  */
35
33
  export declare function instanceOf<GenericInput extends unknown, GenericConstructor extends AnyConstructor>(constructor: GenericConstructor | GenericConstructor[]): (input: GenericInput) => input is Extract<GenericInput, InstanceType<GenericConstructor>>;
36
34
  export declare function instanceOf<GenericInput extends unknown, GenericConstructor extends AnyConstructor>(input: GenericInput, constructor: GenericConstructor | GenericConstructor[]): input is Extract<GenericInput, InstanceType<GenericConstructor>>;
@@ -49,8 +49,6 @@ type EligibleType<GenericInput extends unknown> = {
49
49
  *
50
50
  * @see https://utils.duplojs.dev/en/v1/api/common/isType
51
51
  *
52
- * @namespace C
53
- *
54
52
  */
55
53
  export declare function isType<GenericInput extends unknown, GenericType extends EligibleType<GenericInput>>(type: GenericType): (input: GenericInput) => input is ComputeResult<GenericInput, Type[GenericType]>;
56
54
  export declare function isType<GenericInput extends unknown, GenericType extends EligibleType<GenericInput>>(input: GenericInput, type: GenericType): input is ComputeResult<GenericInput, Type[GenericType]>;
@@ -39,8 +39,6 @@ import { type AnyValue } from "./types";
39
39
  *
40
40
  * @see https://utils.duplojs.dev/en/v1/api/common/justReturn
41
41
  *
42
- * @namespace C
43
- *
44
42
  */
45
43
  export declare function justReturn<GenericInput extends unknown, GenericValue extends AnyValue>(value: GenericValue): (input: GenericInput) => GenericValue;
46
44
  export declare function justReturn<GenericInput extends unknown, GenericValue extends AnyValue>(input: GenericInput, value: GenericValue): GenericValue;
@@ -82,8 +82,6 @@ type ForbiddenKindCharacters<GenericValue extends string> = ForbiddenString<Gene
82
82
  *
83
83
  * @see https://utils.duplojs.dev/en/v1/api/common/kind
84
84
  *
85
- * @namespace C
86
- *
87
85
  */
88
86
  export declare function createKind<GenericName extends string, GenericKindValue extends unknown = unknown>(name: GenericName & ForbiddenKindCharacters<GenericName>): KindHandler<KindDefinition<GenericName, GenericKindValue>>;
89
87
  export interface ReservedKindNamespace {
@@ -138,8 +136,6 @@ type ForbiddenKindNamespace<GenericValue extends string> = (ForbiddenKindCharact
138
136
  *
139
137
  * @see https://utils.duplojs.dev/en/v1/api/common/kind
140
138
  *
141
- * @namespace C
142
- *
143
139
  */
144
140
  export declare function createKindNamespace<GenericNamespace extends string>(namespace: GenericNamespace & ForbiddenKindNamespace<GenericNamespace>): <GenericName extends string, GenericKindValue extends unknown = unknown>(name: GenericName & ForbiddenKindCharacters<GenericName>) => KindHandler<KindDefinition<`@${GenericNamespace}/${GenericName}`, GenericKindValue>>;
145
141
  export type KindHeritageConstructorParams<GenericKindHandler extends KindHandler> = {
@@ -34,8 +34,6 @@ export interface LoopParams<GenericRawNextOutput extends any> {
34
34
  *
35
35
  * @see https://utils.duplojs.dev/en/v1/api/common/loop
36
36
  *
37
- * @namespace C
38
- *
39
37
  */
40
38
  export declare function loop<GenericRawExitOutput extends AnyValue = undefined, GenericRawNextOutput extends AnyValue = undefined>(loop: (params: LoopParams<GenericRawNextOutput>) => LoopOutputNextResult<GenericRawNextOutput> | LoopOutputExistResult<GenericRawExitOutput>): GenericRawExitOutput;
41
39
  export {};
@@ -24,7 +24,5 @@ export interface Memoized<GenericValue extends unknown> {
24
24
  *
25
25
  * @see https://utils.duplojs.dev/en/v1/api/common/memo
26
26
  *
27
- * @namespace C
28
- *
29
27
  */
30
28
  export declare function memo<GenericOutput extends AnyValue>(theFunction: () => GenericOutput): Memoized<GenericOutput>;
@@ -41,8 +41,6 @@ type ExtractPredicate<GenericPredicatedInput extends readonly AnyFunction<any[],
41
41
  *
42
42
  * @see https://utils.duplojs.dev/en/v1/api/common/or
43
43
  *
44
- * @namespace C
45
- *
46
44
  */
47
45
  export declare function or<GenericInput extends unknown, const GenericArrayPredicatedInput extends readonly [
48
46
  (input: GenericInput) => input is any,
@@ -53,8 +53,6 @@ export interface OverrideHandler<GenericInterface extends object> {
53
53
  *
54
54
  * @see https://utils.duplojs.dev/en/v1/api/common/override
55
55
  *
56
- * @namespace C
57
- *
58
56
  */
59
57
  export declare function createOverride<GenericInterface extends object>(overrideName: string): OverrideHandler<GenericInterface>;
60
58
  export {};
@@ -26,8 +26,6 @@ import { type AnyValue } from "./types/anyValue";
26
26
  *
27
27
  * @see https://utils.duplojs.dev/en/v1/api/common/pipe
28
28
  *
29
- * @namespace C
30
- *
31
29
  */
32
30
  export declare function pipe<GenericInput extends AnyValue, GenericOutputPipe1 extends AnyValue | EscapeVoid>(input: GenericInput, pipe1: (input: GenericInput) => GenericOutputPipe1): BreakGenericLink<GenericOutputPipe1>;
33
31
  export declare function pipe<GenericInput extends AnyValue, GenericOutputPipe1 extends AnyValue | EscapeVoid, GenericOutputPipe2 extends AnyValue | EscapeVoid>(input: GenericInput, pipe1: (input: GenericInput) => GenericOutputPipe1, pipe2: (input: GenericOutputPipe1) => GenericOutputPipe2): BreakGenericLink<GenericOutputPipe2>;
@@ -27,7 +27,5 @@ export type AwaitedPromiseObject<GenericObject extends Record<string, MaybePromi
27
27
  *
28
28
  * @see https://utils.duplojs.dev/en/v1/api/common/promiseObject
29
29
  *
30
- * @namespace C
31
- *
32
30
  */
33
31
  export declare function promiseObject<GenericValue extends AnyValue, GenericObject extends Record<string, MaybePromise<GenericValue>>>(object: GenericObject): Promise<SimplifyTopLevel<AwaitedPromiseObject<GenericObject>>>;
@@ -18,7 +18,5 @@
18
18
  *
19
19
  * @see https://utils.duplojs.dev/en/v1/api/common/simpleClone
20
20
  *
21
- * @namespace C
22
- *
23
21
  */
24
22
  export declare function simpleClone<GenericObject extends unknown = unknown>(unknownValue: GenericObject): GenericObject;
@@ -16,7 +16,5 @@
16
16
  *
17
17
  * @see https://utils.duplojs.dev/en/v1/api/common/sleep
18
18
  *
19
- * @namespace C
20
- *
21
19
  */
22
20
  export declare function sleep(millieSeconde?: number): Promise<void>;
@@ -28,8 +28,6 @@ export type BytesInString = `${number}${keyof typeof unitMapper}`;
28
28
  *
29
29
  * @see https://utils.duplojs.dev/en/v1/api/common/stringToBytes
30
30
  *
31
- * @namespace C
32
- *
33
31
  */
34
32
  export declare function stringToBytes(bytesInString: BytesInString | number): number;
35
33
  export {};
@@ -28,8 +28,6 @@ export type MillisecondInString = `${number}${keyof typeof unitMapper}` | `${num
28
28
  *
29
29
  * @see https://utils.duplojs.dev/en/v1/api/common/stringToMillisecond
30
30
  *
31
- * @namespace C
32
- *
33
31
  */
34
32
  export declare function stringToMillisecond(millisecondInString: MillisecondInString | number, ...millisecondInStrings: (MillisecondInString | number)[]): number;
35
33
  export {};
@@ -40,7 +40,5 @@ export type ToJSON<GenericValue extends unknown> = GenericValue extends number |
40
40
  *
41
41
  * @see https://utils.duplojs.dev/en/v1/api/common/toJSON
42
42
  *
43
- * @namespace C
44
- *
45
43
  */
46
44
  export declare function toJSON<GenericValue extends unknown>(value: GenericValue): ToJSON<GenericValue>;
@@ -13,7 +13,5 @@
13
13
  *
14
14
  * @see https://utils.duplojs.dev/en/v1/api/common/toString
15
15
  *
16
- * @namespace C
17
- *
18
16
  */
19
17
  export declare function toString<GenericValue extends number | string | bigint | boolean | null | undefined>(value: GenericValue): `${GenericValue}`;
@@ -46,7 +46,5 @@ export type ToTransform<GenericValue extends unknown> = GenericValue extends num
46
46
  *
47
47
  * @see https://utils.duplojs.dev/en/v1/api/common/toTransform
48
48
  *
49
- * @namespace C
50
- *
51
49
  */
52
50
  export declare function toTransform<GenericValue extends unknown>(value: GenericValue): ToTransform<GenericValue>;
@@ -21,7 +21,5 @@ export type ToWrappedValue<GenericValue extends unknown> = GenericValue extends
21
21
  *
22
22
  * @see https://utils.duplojs.dev/en/v1/api/common/toWrappedValue
23
23
  *
24
- * @namespace C
25
- *
26
24
  */
27
25
  export declare function toWrappedValue<GenericInnerValue extends AnyValue, GenericValue extends MaybeWrapped<GenericInnerValue>>(value: GenericValue): ToWrappedValue<GenericValue>;
@@ -24,7 +24,5 @@ export type TruthyValue<GenericInput extends unknown> = Exclude<GenericInput, Fa
24
24
  *
25
25
  * @see https://utils.duplojs.dev/en/v1/api/common/truthy
26
26
  *
27
- * @namespace C
28
- *
29
27
  */
30
28
  export declare function truthy<GenericInput extends unknown>(input: GenericInput): input is TruthyValue<GenericInput>;
@@ -19,7 +19,5 @@ export type Unwrap<GenericAnyValue extends unknown> = GenericAnyValue extends Wr
19
19
  *
20
20
  * @see https://utils.duplojs.dev/en/v1/api/common/unwrap
21
21
  *
22
- * @namespace C
23
- *
24
22
  */
25
23
  export declare function unwrap<const GenericValue extends unknown>(anyValue: GenericValue): Unwrap<GenericValue>;
@@ -36,8 +36,6 @@ import { type EscapeVoid, type AnyValue, type BreakGenericLink } from "./types";
36
36
  *
37
37
  * @see https://utils.duplojs.dev/en/v1/api/common/when
38
38
  *
39
- * @namespace C
40
- *
41
39
  */
42
40
  export declare function when<GenericInput extends AnyValue, GenericPredicatedInput extends GenericInput, GenericOutput extends AnyValue | EscapeVoid>(ifFunction: (input: GenericInput) => input is GenericPredicatedInput, theFunction: (predicatedInput: GenericPredicatedInput) => GenericOutput): (input: GenericInput) => GenericOutput | Exclude<BreakGenericLink<GenericInput>, GenericPredicatedInput>;
43
41
  export declare function when<GenericInput extends AnyValue, GenericPredicatedInput extends GenericInput, GenericOutput extends AnyValue | EscapeVoid>(input: GenericInput, ifFunction: (input: GenericInput) => input is GenericPredicatedInput, theFunction: (predicatedInput: GenericPredicatedInput) => GenericOutput): GenericOutput | Exclude<GenericInput, GenericPredicatedInput>;
@@ -38,8 +38,6 @@ import { type EscapeVoid, type AnyValue, type BreakGenericLink } from "./types";
38
38
  *
39
39
  * @see https://utils.duplojs.dev/en/v1/api/common/whenElse
40
40
  *
41
- * @namespace C
42
- *
43
41
  */
44
42
  export declare function whenElse<GenericInput extends AnyValue, GenericPredicatedInput extends GenericInput, GenericOutput1 extends AnyValue | EscapeVoid, GenericOutput2 extends AnyValue | EscapeVoid>(predicate: (input: GenericInput) => input is GenericPredicatedInput, theFunction: (predicatedInput: GenericPredicatedInput) => GenericOutput1, elseFunction: (predicatedInput: Exclude<GenericInput, GenericPredicatedInput>) => GenericOutput2): (input: GenericInput) => BreakGenericLink<GenericOutput1> | BreakGenericLink<GenericOutput2>;
45
43
  export declare function whenElse<GenericInput extends AnyValue, GenericPredicatedInput extends GenericInput, GenericOutput1 extends AnyValue | EscapeVoid, GenericOutput2 extends AnyValue | EscapeVoid>(input: GenericInput, predicate: (input: GenericInput) => input is GenericPredicatedInput, theFunction: (predicatedInput: GenericPredicatedInput) => GenericOutput1, elseFunction: (predicatedInput: Exclude<GenericInput, GenericPredicatedInput>) => GenericOutput2): GenericOutput1 | GenericOutput2;
@@ -36,8 +36,6 @@ import { type EscapeVoid, type AnyValue, type BreakGenericLink } from "./types";
36
36
  *
37
37
  * @see https://utils.duplojs.dev/en/v1/api/common/whenNot
38
38
  *
39
- * @namespace C
40
- *
41
39
  */
42
40
  export declare function whenNot<GenericInput extends AnyValue, GenericPredicatedInput extends GenericInput, GenericOutput extends AnyValue | EscapeVoid>(ifFunction: (input: GenericInput) => input is GenericPredicatedInput, theFunction: (predicatedInput: Exclude<GenericInput, GenericPredicatedInput>) => GenericOutput): (input: GenericInput) => GenericOutput | BreakGenericLink<GenericPredicatedInput>;
43
41
  export declare function whenNot<GenericInput extends AnyValue, GenericPredicatedInput extends GenericInput, GenericOutput extends AnyValue | EscapeVoid>(input: GenericInput, ifFunction: (input: GenericInput) => input is GenericPredicatedInput, theFunction: (predicatedInput: Exclude<GenericInput, GenericPredicatedInput>) => GenericOutput): GenericOutput | GenericPredicatedInput;
@@ -19,8 +19,6 @@ export interface WrappedValue<GenericValue extends unknown = unknown> {
19
19
  *
20
20
  * @see https://utils.duplojs.dev/en/v1/api/common/wrapValue
21
21
  *
22
- * @namespace C
23
- *
24
22
  */
25
23
  export declare function wrapValue<const GenericValue extends unknown>(value: GenericValue): WrappedValue<GenericValue>;
26
24
  /**
@@ -40,8 +38,6 @@ export declare function wrapValue<const GenericValue extends unknown>(value: Gen
40
38
  *
41
39
  * @see https://utils.duplojs.dev/en/v1/api/common/isWrappedValue
42
40
  *
43
- * @namespace C
44
- *
45
41
  */
46
42
  export declare function isWrappedValue<GenericInput extends unknown>(input: GenericInput): input is Extract<GenericInput, WrappedValue<any>>;
47
43
  /**
@@ -58,8 +54,6 @@ export declare function isWrappedValue<GenericInput extends unknown>(input: Gene
58
54
  *
59
55
  * @see https://utils.duplojs.dev/en/v1/api/common/isRuntimeWrappedValueKey
60
56
  *
61
- * @namespace C
62
- *
63
57
  */
64
58
  export declare function isRuntimeWrappedValueKey(value: string): boolean;
65
59
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duplojs/utils",
3
- "version": "1.4.38",
3
+ "version": "1.4.39",
4
4
  "author": {
5
5
  "name": "mathcovax",
6
6
  "url": "https://github.com/mathcovax"