UNPKG
@jsonjoy.com/util
Version:
latest (18.28.0)
18.28.0
18.24.0
18.23.0
18.22.0
18.21.0
18.20.0
18.19.0
18.18.0
18.15.0
18.14.0
18.13.0
18.12.0
18.11.0
18.10.0
18.9.0
18.8.0
18.7.0
18.6.0
18.5.0
18.1.0
18.0.0
17.67.0
17.65.0
17.64.0
17.63.0
17.62.0
17.61.1
17.61.0
17.60.0
17.59.0
1.9.0
1.8.1
1.8.0
1.7.0
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
Various helper utilities
github.com/streamich/json-joy/packages/util
streamich/json-joy
@jsonjoy.com/util
/
lib
/
types.d.ts
10 lines
•
282 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
export
type
Mutable
<T> = { -
readonly
[P
in
keyof T]: T[P]; };
export
type
Brand
<S
extends
string
, T, B> = S & {
__TYPE__
: T;
__BRAND__
: B; };
export
type
MaybeArray
<T> = T | T[];
export
type
Ensure
<T,
Ext
> = T
extends
Ext
? T :
never
;
//# sourceMappingURL=types.d.ts.map