@rzl-zone/utils-js 3.3.1 → 3.4.0
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/README.md +3 -3
- package/dist/assertions/index.d.ts +1 -1
- package/dist/conversions/index.d.ts +1 -1
- package/dist/formatters/index.d.ts +1 -1
- package/dist/generators/index.d.ts +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/{isPlainObject-DGJkcFYw.d.ts → isPlainObject-CEPWPiXh.d.ts} +1 -1
- package/dist/next/index.d.ts +1 -1
- package/dist/operations/index.d.ts +1 -1
- package/dist/predicates/index.d.ts +1 -1
- package/dist/promises/index.d.ts +1 -1
- package/dist/strings/index.d.ts +1 -1
- package/package.json +2 -7
- package/dist/NumberRangeUnion-B6bhM2s7.d.ts +0 -33
- package/dist/any-v4TsK9ES.d.ts +0 -66
- package/dist/arrays-normalize-recursive-BqmVuFlD.d.ts +0 -72
- package/dist/extends-DtdRjDyU.d.ts +0 -343
- package/dist/if-ChM35c_q.d.ts +0 -19
- package/dist/is-array-BJeHxPM3.d.ts +0 -952
- package/dist/never-D89PbPh5.d.ts +0 -66
- package/dist/nils-CO8zLHSB.d.ts +0 -151
- package/dist/or-C6qzKt2I.d.ts +0 -82
- package/dist/override-CL2olHE5.d.ts +0 -59
- package/dist/pick-BSMX6Xe2.d.ts +0 -15
- package/dist/prettify-3o8_Kw6b.d.ts +0 -564
- package/dist/promises-LU7K00H0.d.ts +0 -72
- package/dist/string-B1jlOnws.d.ts +0 -312
- package/dist/types/index.d.ts +0 -3345
package/dist/if-ChM35c_q.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** -------------------------------------------------------
|
|
2
|
-
* * ***Utility Type: `If`.***
|
|
3
|
-
* -------------------------------------------------------
|
|
4
|
-
* - **Conditional:**
|
|
5
|
-
* - Returns the second argument if the first argument is `true`, otherwise
|
|
6
|
-
* returns the third argument.
|
|
7
|
-
* - Defaults: `IfTrue = true`, `IfFalse = false`.
|
|
8
|
-
* @template Condition - The boolean condition to check.
|
|
9
|
-
* @template IfTrue - The branch type if condition is `true`. (default: `true`).
|
|
10
|
-
* @template IfFalse - The branch type if condition is `false`. (default: `false`).
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* type A = If<true, "valid">;
|
|
14
|
-
* // ➔ "valid"
|
|
15
|
-
* type B = If<false, "valid", "invalid">;
|
|
16
|
-
* // ➔ "invalid"
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
type If<Condition,IfTrue=true,IfFalse=false>=Condition extends true?IfTrue:IfFalse;export type{If as I};
|