@stryke/types 0.5.1 → 0.6.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 +16 -14
- package/dist/{utility-types/array.d.ts → array.d.ts} +0 -12
- package/dist/{utility-types/async.d.ts → async.d.ts} +1 -11
- package/dist/{utility-types/base.d.ts → base.d.ts} +23 -31
- package/dist/index.cjs +181 -16
- package/dist/index.d.ts +19 -4
- package/dist/index.mjs +1 -1
- package/dist/{utility-types/json.d.ts → json.d.ts} +0 -10
- package/dist/{utility-types/number.d.ts → number.d.ts} +0 -22
- package/dist/{utility-types/object.d.ts → object.d.ts} +1 -15
- package/dist/{utility-types/package-json.d.ts → package-json.d.ts} +3 -5
- package/dist/{utility-types/string.d.ts → string.d.ts} +0 -12
- package/dist/{utility-types/tsconfig.d.ts → tsconfig.d.ts} +0 -2
- package/dist/{utility-types/utilities.d.ts → utilities.d.ts} +1 -1
- package/dist/validations.cjs +1 -0
- package/dist/validations.mjs +0 -0
- package/package.json +125 -987
- package/dist/convert/buffer-to-string.cjs +0 -8
- package/dist/convert/buffer-to-string.d.ts +0 -1
- package/dist/convert/buffer-to-string.mjs +0 -1
- package/dist/convert/index.cjs +0 -71
- package/dist/convert/index.d.ts +0 -6
- package/dist/convert/index.mjs +0 -1
- package/dist/convert/string-to-uint8-array.cjs +0 -8
- package/dist/convert/string-to-uint8-array.d.ts +0 -7
- package/dist/convert/string-to-uint8-array.mjs +0 -1
- package/dist/convert/to-array.cjs +0 -9
- package/dist/convert/to-array.d.ts +0 -8
- package/dist/convert/to-array.mjs +0 -1
- package/dist/convert/to-string-key.cjs +0 -9
- package/dist/convert/to-string-key.d.ts +0 -7
- package/dist/convert/to-string-key.mjs +0 -1
- package/dist/convert/uint8-array-to-string.cjs +0 -8
- package/dist/convert/uint8-array-to-string.d.ts +0 -13
- package/dist/convert/uint8-array-to-string.mjs +0 -1
- package/dist/convert/utf8-array-to-string.cjs +0 -8
- package/dist/convert/utf8-array-to-string.d.ts +0 -13
- package/dist/convert/utf8-array-to-string.mjs +0 -1
- package/dist/helpers/index.cjs +0 -16
- package/dist/helpers/index.d.ts +0 -1
- package/dist/helpers/index.mjs +0 -1
- package/dist/helpers/parse-type-definition.cjs +0 -33
- package/dist/helpers/parse-type-definition.d.ts +0 -8
- package/dist/helpers/parse-type-definition.mjs +0 -1
- package/dist/type-checks/get-object-tag.cjs +0 -8
- package/dist/type-checks/get-object-tag.d.ts +0 -7
- package/dist/type-checks/get-object-tag.mjs +0 -1
- package/dist/type-checks/index.cjs +0 -456
- package/dist/type-checks/index.d.ts +0 -41
- package/dist/type-checks/index.mjs +0 -1
- package/dist/type-checks/is-array-like.cjs +0 -11
- package/dist/type-checks/is-array-like.d.ts +0 -7
- package/dist/type-checks/is-array-like.mjs +0 -1
- package/dist/type-checks/is-async-iterable.cjs +0 -10
- package/dist/type-checks/is-async-iterable.d.ts +0 -7
- package/dist/type-checks/is-async-iterable.mjs +0 -1
- package/dist/type-checks/is-bigint.cjs +0 -9
- package/dist/type-checks/is-bigint.d.ts +0 -16
- package/dist/type-checks/is-bigint.mjs +0 -1
- package/dist/type-checks/is-boolean.cjs +0 -14
- package/dist/type-checks/is-boolean.d.ts +0 -7
- package/dist/type-checks/is-boolean.mjs +0 -1
- package/dist/type-checks/is-buffer.cjs +0 -10
- package/dist/type-checks/is-buffer.d.ts +0 -5
- package/dist/type-checks/is-buffer.mjs +0 -1
- package/dist/type-checks/is-collection.cjs +0 -11
- package/dist/type-checks/is-collection.d.ts +0 -8
- package/dist/type-checks/is-collection.mjs +0 -1
- package/dist/type-checks/is-date.cjs +0 -10
- package/dist/type-checks/is-date.d.ts +0 -16
- package/dist/type-checks/is-date.mjs +0 -1
- package/dist/type-checks/is-deep-key.cjs +0 -26
- package/dist/type-checks/is-deep-key.d.ts +0 -35
- package/dist/type-checks/is-deep-key.mjs +0 -1
- package/dist/type-checks/is-empty-object.cjs +0 -23
- package/dist/type-checks/is-empty-object.d.ts +0 -14
- package/dist/type-checks/is-empty-object.mjs +0 -1
- package/dist/type-checks/is-empty-string.cjs +0 -16
- package/dist/type-checks/is-empty-string.d.ts +0 -7
- package/dist/type-checks/is-empty-string.mjs +0 -1
- package/dist/type-checks/is-empty.cjs +0 -35
- package/dist/type-checks/is-empty.d.ts +0 -8
- package/dist/type-checks/is-empty.mjs +0 -1
- package/dist/type-checks/is-equal.cjs +0 -18
- package/dist/type-checks/is-equal.d.ts +0 -1
- package/dist/type-checks/is-equal.mjs +0 -1
- package/dist/type-checks/is-error.cjs +0 -15
- package/dist/type-checks/is-error.d.ts +0 -17
- package/dist/type-checks/is-error.mjs +0 -1
- package/dist/type-checks/is-file-result.cjs +0 -11
- package/dist/type-checks/is-file-result.d.ts +0 -8
- package/dist/type-checks/is-file-result.mjs +0 -1
- package/dist/type-checks/is-float.cjs +0 -9
- package/dist/type-checks/is-float.d.ts +0 -8
- package/dist/type-checks/is-float.mjs +0 -1
- package/dist/type-checks/is-function.cjs +0 -23
- package/dist/type-checks/is-function.d.ts +0 -10
- package/dist/type-checks/is-function.mjs +0 -1
- package/dist/type-checks/is-integer.cjs +0 -10
- package/dist/type-checks/is-integer.d.ts +0 -8
- package/dist/type-checks/is-integer.mjs +0 -1
- package/dist/type-checks/is-mergeable-object.cjs +0 -14
- package/dist/type-checks/is-mergeable-object.d.ts +0 -1
- package/dist/type-checks/is-mergeable-object.mjs +0 -1
- package/dist/type-checks/is-non-null-object.cjs +0 -10
- package/dist/type-checks/is-non-null-object.d.ts +0 -7
- package/dist/type-checks/is-non-null-object.mjs +0 -1
- package/dist/type-checks/is-not-empty.cjs +0 -17
- package/dist/type-checks/is-not-empty.d.ts +0 -7
- package/dist/type-checks/is-not-empty.mjs +0 -1
- package/dist/type-checks/is-null.cjs +0 -14
- package/dist/type-checks/is-null.d.ts +0 -1
- package/dist/type-checks/is-null.mjs +0 -1
- package/dist/type-checks/is-number.cjs +0 -19
- package/dist/type-checks/is-number.d.ts +0 -15
- package/dist/type-checks/is-number.mjs +0 -1
- package/dist/type-checks/is-object-index.cjs +0 -17
- package/dist/type-checks/is-object-index.d.ts +0 -7
- package/dist/type-checks/is-object-index.mjs +0 -1
- package/dist/type-checks/is-object.cjs +0 -30
- package/dist/type-checks/is-object.d.ts +0 -30
- package/dist/type-checks/is-object.mjs +0 -1
- package/dist/type-checks/is-plain-object.cjs +0 -17
- package/dist/type-checks/is-plain-object.d.ts +0 -50
- package/dist/type-checks/is-plain-object.mjs +0 -1
- package/dist/type-checks/is-primitive.cjs +0 -14
- package/dist/type-checks/is-primitive.d.ts +0 -1
- package/dist/type-checks/is-primitive.mjs +0 -1
- package/dist/type-checks/is-promise.cjs +0 -12
- package/dist/type-checks/is-promise.d.ts +0 -17
- package/dist/type-checks/is-promise.mjs +0 -1
- package/dist/type-checks/is-react-element.cjs +0 -8
- package/dist/type-checks/is-react-element.d.ts +0 -1
- package/dist/type-checks/is-react-element.mjs +0 -1
- package/dist/type-checks/is-ref.cjs +0 -14
- package/dist/type-checks/is-ref.d.ts +0 -8
- package/dist/type-checks/is-ref.mjs +0 -1
- package/dist/type-checks/is-regexp.cjs +0 -10
- package/dist/type-checks/is-regexp.d.ts +0 -16
- package/dist/type-checks/is-regexp.mjs +0 -1
- package/dist/type-checks/is-select-option.cjs +0 -15
- package/dist/type-checks/is-select-option.d.ts +0 -8
- package/dist/type-checks/is-select-option.mjs +0 -1
- package/dist/type-checks/is-set-object.cjs +0 -15
- package/dist/type-checks/is-set-object.d.ts +0 -7
- package/dist/type-checks/is-set-object.mjs +0 -1
- package/dist/type-checks/is-set-string.cjs +0 -16
- package/dist/type-checks/is-set-string.d.ts +0 -7
- package/dist/type-checks/is-set-string.mjs +0 -1
- package/dist/type-checks/is-set.cjs +0 -15
- package/dist/type-checks/is-set.d.ts +0 -7
- package/dist/type-checks/is-set.mjs +0 -1
- package/dist/type-checks/is-string.cjs +0 -14
- package/dist/type-checks/is-string.d.ts +0 -1
- package/dist/type-checks/is-string.mjs +0 -1
- package/dist/type-checks/is-symbol.cjs +0 -14
- package/dist/type-checks/is-symbol.d.ts +0 -1
- package/dist/type-checks/is-symbol.mjs +0 -1
- package/dist/type-checks/is-typed-array.cjs +0 -9
- package/dist/type-checks/is-typed-array.d.ts +0 -1
- package/dist/type-checks/is-typed-array.mjs +0 -1
- package/dist/type-checks/is-typed.cjs +0 -16
- package/dist/type-checks/is-typed.d.ts +0 -8
- package/dist/type-checks/is-typed.mjs +0 -1
- package/dist/type-checks/is-undefined.cjs +0 -8
- package/dist/type-checks/is-undefined.d.ts +0 -1
- package/dist/type-checks/is-undefined.mjs +0 -1
- package/dist/type-checks/property-exists.cjs +0 -17
- package/dist/type-checks/property-exists.d.ts +0 -16
- package/dist/type-checks/property-exists.mjs +0 -1
- package/dist/type-checks/type-detect.cjs +0 -38
- package/dist/type-checks/type-detect.d.ts +0 -1
- package/dist/type-checks/type-detect.mjs +0 -1
- package/dist/utility-types/array.cjs +0 -9
- package/dist/utility-types/array.mjs +0 -1
- package/dist/utility-types/index.cjs +0 -214
- package/dist/utility-types/index.d.ts +0 -19
- package/dist/utility-types/index.mjs +0 -1
- /package/dist/{utility-types/async.cjs → array.cjs} +0 -0
- /package/dist/{utility-types/async.mjs → array.mjs} +0 -0
- /package/dist/{utility-types/configuration.cjs → async.cjs} +0 -0
- /package/dist/{utility-types/configuration.mjs → async.mjs} +0 -0
- /package/dist/{utility-types/base.cjs → base.cjs} +0 -0
- /package/dist/{utility-types/base.mjs → base.mjs} +0 -0
- /package/dist/{utility-types/form.cjs → configuration.cjs} +0 -0
- /package/dist/{utility-types/configuration.d.ts → configuration.d.ts} +0 -0
- /package/dist/{utility-types/form.mjs → configuration.mjs} +0 -0
- /package/dist/{utility-types/file.cjs → file.cjs} +0 -0
- /package/dist/{utility-types/file.d.ts → file.d.ts} +0 -0
- /package/dist/{utility-types/file.mjs → file.mjs} +0 -0
- /package/dist/{utility-types/json.cjs → form.cjs} +0 -0
- /package/dist/{utility-types/form.d.ts → form.d.ts} +0 -0
- /package/dist/{utility-types/json.mjs → form.mjs} +0 -0
- /package/dist/{utility-types/logic.cjs → json.cjs} +0 -0
- /package/dist/{utility-types/logic.mjs → json.mjs} +0 -0
- /package/dist/{utility-types/navigator.cjs → logic.cjs} +0 -0
- /package/dist/{utility-types/logic.d.ts → logic.d.ts} +0 -0
- /package/dist/{utility-types/navigator.mjs → logic.mjs} +0 -0
- /package/dist/{utility-types/messages.cjs → messages.cjs} +0 -0
- /package/dist/{utility-types/messages.d.ts → messages.d.ts} +0 -0
- /package/dist/{utility-types/messages.mjs → messages.mjs} +0 -0
- /package/dist/{utility-types/number.cjs → navigator.cjs} +0 -0
- /package/dist/{utility-types/navigator.d.ts → navigator.d.ts} +0 -0
- /package/dist/{utility-types/number.mjs → navigator.mjs} +0 -0
- /package/dist/{utility-types/object.cjs → number.cjs} +0 -0
- /package/dist/{utility-types/object.mjs → number.mjs} +0 -0
- /package/dist/{utility-types/package-json.cjs → object.cjs} +0 -0
- /package/dist/{utility-types/package-json.mjs → object.mjs} +0 -0
- /package/dist/{utility-types/string.cjs → package-json.cjs} +0 -0
- /package/dist/{utility-types/string.mjs → package-json.mjs} +0 -0
- /package/dist/{utility-types/package-manager.cjs → package-manager.cjs} +0 -0
- /package/dist/{utility-types/package-manager.d.ts → package-manager.d.ts} +0 -0
- /package/dist/{utility-types/package-manager.mjs → package-manager.mjs} +0 -0
- /package/dist/{utility-types/system.cjs → string.cjs} +0 -0
- /package/dist/{utility-types/system.mjs → string.mjs} +0 -0
- /package/dist/{utility-types/tsconfig.cjs → system.cjs} +0 -0
- /package/dist/{utility-types/system.d.ts → system.d.ts} +0 -0
- /package/dist/{utility-types/tsconfig.mjs → system.mjs} +0 -0
- /package/dist/{utility-types/utilities.cjs → tsconfig.cjs} +0 -0
- /package/dist/{utility-types/utilities.mjs → tsconfig.mjs} +0 -0
- /package/dist/{utility-types/user.cjs → user.cjs} +0 -0
- /package/dist/{utility-types/user.d.ts → user.d.ts} +0 -0
- /package/dist/{utility-types/user.mjs → user.mjs} +0 -0
- /package/dist/{utility-types/validations.cjs → utilities.cjs} +0 -0
- /package/dist/{utility-types/validations.mjs → utilities.mjs} +0 -0
- /package/dist/{utility-types/validations.d.ts → validations.d.ts} +0 -0
|
@@ -68,8 +68,6 @@ export type LiteralKeyOf<T> = keyof {
|
|
|
68
68
|
* const pet: Pet2 = '';
|
|
69
69
|
* // You **will** get auto-completion for `dog` and `cat` literals.
|
|
70
70
|
* ```
|
|
71
|
-
*
|
|
72
|
-
* @category Type
|
|
73
71
|
*/
|
|
74
72
|
export type LiteralUnion<LiteralType, BaseType extends Primitive> = (BaseType & Record<never, never>) | LiteralType;
|
|
75
73
|
/**
|
|
@@ -155,9 +153,6 @@ type StrictPropertyOf<BaseType, Key extends keyof BaseType, Options extends GetO
|
|
|
155
153
|
*
|
|
156
154
|
* array = split(items, ',');
|
|
157
155
|
* ```
|
|
158
|
-
*
|
|
159
|
-
* @category String
|
|
160
|
-
* @category Template literal
|
|
161
156
|
*/
|
|
162
157
|
export type Split<S extends string, Delimiter extends string> = S extends `${infer Head}${Delimiter}${infer Tail}` ? [Head, ...Split<Tail, Delimiter>] : S extends Delimiter ? [] : [S];
|
|
163
158
|
/**
|
|
@@ -174,7 +169,7 @@ export type Split<S extends string, Delimiter extends string> = S extends `${inf
|
|
|
174
169
|
*/
|
|
175
170
|
export type ToPath<S extends string> = Split<FixPathSquareBrackets<S>, ".">;
|
|
176
171
|
/**
|
|
177
|
-
* Replaces square-bracketed dot notation with dots, for example, `foo[0].bar`
|
|
172
|
+
* Replaces square-bracketed dot notation with dots, for example, `foo[0].bar` -\> `foo.0.bar`.
|
|
178
173
|
*/
|
|
179
174
|
type FixPathSquareBrackets<Path extends string> = Path extends `[${infer Head}]${infer Tail}` ? Tail extends `[${string}` ? `${Head}.${FixPathSquareBrackets<Tail>}` : `${Head}${FixPathSquareBrackets<Tail>}` : Path extends `${infer Head}[${infer Middle}]${infer Tail}` ? `${Head}.${FixPathSquareBrackets<`[${Middle}]${Tail}`>}` : Path;
|
|
180
175
|
/**
|
|
@@ -267,10 +262,6 @@ type PropertyOf<BaseType, Key extends string, Options extends GetOptions = {}> =
|
|
|
267
262
|
* Get<string[], '3', {strict: false}> //=> string
|
|
268
263
|
* Get<Record<string, string>, 'foo', {strict: true}> // => string
|
|
269
264
|
* ```
|
|
270
|
-
*
|
|
271
|
-
* @category Object
|
|
272
|
-
* @category Array
|
|
273
|
-
* @category Template literal
|
|
274
265
|
*/
|
|
275
266
|
export type Get<BaseType, Path extends readonly string[] | string, Options extends GetOptions = NonNullable<unknown>> = GetWithPath<BaseType, Path extends string ? ToPath<Path> : Path, Options>;
|
|
276
267
|
/**
|
|
@@ -315,8 +306,6 @@ export type Get<BaseType, Path extends readonly string[] | string, Options exten
|
|
|
315
306
|
* type Intersection = UnionToIntersection<Union>;
|
|
316
307
|
* //=> {a1(): void; b1(): void; a2(argA: string): void; b2(argB: string): void}
|
|
317
308
|
* ```
|
|
318
|
-
*
|
|
319
|
-
* @category Type
|
|
320
309
|
*/
|
|
321
310
|
export type UnionToIntersection<Union> = (Union extends unknown ? (_distributedUnion: Union) => void : never) extends (_mergedIntersection: infer Intersection) => void ? // The `& Union` is to allow indexing by the resulting type
|
|
322
311
|
Intersection & Union : never;
|
|
@@ -387,9 +376,6 @@ Intersection & Union : never;
|
|
|
387
376
|
* // };
|
|
388
377
|
* // }
|
|
389
378
|
* ```
|
|
390
|
-
*
|
|
391
|
-
* @category Object
|
|
392
|
-
* @category Array
|
|
393
379
|
*/
|
|
394
380
|
export type PickDeep<T, PathUnion extends Paths<T>> = T extends NonRecursiveType ? never : T extends UnknownArray ? UnionToIntersection<{
|
|
395
381
|
[P in PathUnion]: InternalPickDeep<T, P>;
|
|
@@ -128,8 +128,7 @@ export interface PackageJson {
|
|
|
128
128
|
* Docs:
|
|
129
129
|
* - https://nodejs.org/docs/latest-v14.x/api/esm.html#esm_package_json_type_field
|
|
130
130
|
*
|
|
131
|
-
* @
|
|
132
|
-
* @since Node.js v14
|
|
131
|
+
* @defaultValue 'commonjs'
|
|
133
132
|
*/
|
|
134
133
|
type?: "module" | "commonjs";
|
|
135
134
|
/**
|
|
@@ -139,8 +138,6 @@ export interface PackageJson {
|
|
|
139
138
|
*
|
|
140
139
|
* Docs:
|
|
141
140
|
* - https://nodejs.org/docs/latest-v14.x/api/esm.html#esm_exports_sugar
|
|
142
|
-
*
|
|
143
|
-
* @since Node.js v12.7
|
|
144
141
|
*/
|
|
145
142
|
exports?: PackageJsonExports;
|
|
146
143
|
/**
|
|
@@ -234,7 +231,8 @@ export interface PackageJson {
|
|
|
234
231
|
*
|
|
235
232
|
* When set to `true`, the project will be symlinked from the
|
|
236
233
|
* `publishConfig.directory` location during local development.
|
|
237
|
-
*
|
|
234
|
+
*
|
|
235
|
+
* @defaultValue true
|
|
238
236
|
*/
|
|
239
237
|
linkDirectory?: boolean;
|
|
240
238
|
} & Pick<PackageJson, "bin" | "main" | "exports" | "types" | "typings" | "module" | "browser" | "unpkg" | "typesVersions" | "os" | "cpu">;
|
|
@@ -22,10 +22,6 @@ import type { NegativeInfinity, PositiveInfinity } from "./number";
|
|
|
22
22
|
* type NegativeInfinity = StringToNumber<'-Infinity'>;
|
|
23
23
|
* //=> -Infinity
|
|
24
24
|
* ```
|
|
25
|
-
*
|
|
26
|
-
* @category String
|
|
27
|
-
* @category Numeric
|
|
28
|
-
* @category Template literal
|
|
29
25
|
*/
|
|
30
26
|
export type StringToNumber<S extends string> = S extends `${infer N extends number}` ? N : S extends "Infinity" ? PositiveInfinity : S extends "-Infinity" ? NegativeInfinity : never;
|
|
31
27
|
/**
|
|
@@ -45,9 +41,6 @@ export type StringToNumber<S extends string> = S extends `${infer N extends numb
|
|
|
45
41
|
* StartsWith<'abcde', string>;
|
|
46
42
|
* //=> never
|
|
47
43
|
* ```
|
|
48
|
-
*
|
|
49
|
-
* @category String
|
|
50
|
-
* @category Template literal
|
|
51
44
|
*/
|
|
52
45
|
export type StartsWith<S extends string, SearchString extends string> = string extends S | SearchString ? never : S extends `${SearchString}${string | number | bigint | boolean | null | undefined}` ? true : false;
|
|
53
46
|
/**
|
|
@@ -61,9 +54,6 @@ export type StartsWith<S extends string, SearchString extends string> = string e
|
|
|
61
54
|
* StringLength<string>;
|
|
62
55
|
* //=> never
|
|
63
56
|
* ```
|
|
64
|
-
*
|
|
65
|
-
* @category String
|
|
66
|
-
* @category Template literal
|
|
67
57
|
*/
|
|
68
58
|
export type StringLength<S extends string> = string extends S ? never : StringToArray<S>["length"];
|
|
69
59
|
/**
|
|
@@ -77,8 +67,6 @@ export type StringLength<S extends string> = string extends S ? never : StringTo
|
|
|
77
67
|
* StringToArray<string>;
|
|
78
68
|
* //=> never
|
|
79
69
|
* ```
|
|
80
|
-
*
|
|
81
|
-
* @category String
|
|
82
70
|
*/
|
|
83
71
|
export type StringToArray<S extends string, Result extends string[] = []> = string extends S ? never : S extends `${infer F}${infer R}` ? StringToArray<R, [...Result, F]> : Result;
|
|
84
72
|
export type UpperCaseCharacters = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z";
|
|
@@ -749,8 +749,6 @@ export interface References {
|
|
|
749
749
|
}
|
|
750
750
|
/**
|
|
751
751
|
* Type for [TypeScript's `tsconfig.json` file](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) (TypeScript 3.7).
|
|
752
|
-
*
|
|
753
|
-
* @category File
|
|
754
752
|
*/
|
|
755
753
|
export interface TsConfigJson {
|
|
756
754
|
/**
|
|
@@ -44,7 +44,7 @@ export interface NameValuePair<TValue, TName = string> {
|
|
|
44
44
|
* @param A2 - to cast to
|
|
45
45
|
* @returns `A1 | A2`
|
|
46
46
|
*/
|
|
47
|
-
export type Cast<A1
|
|
47
|
+
export type Cast<A1, A2> = A1 extends A2 ? A1 : A2;
|
|
48
48
|
export type DeepReadonly<T> = T extends Primitive ? T : T extends Array<infer U> ? DeepReadonlyArray<U> : DeepReadonlyObject<T>;
|
|
49
49
|
export type DeepReadonlyArray<T> = ReadonlyArray<DeepReadonly<T>>;
|
|
50
50
|
export type DeepReadonlyObject<T> = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
File without changes
|