effect-app 2.2.0 → 2.3.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/CHANGELOG.md +16 -0
- package/_cjs/client/clientFor.cjs +1 -1
- package/_cjs/client/config.cjs +1 -1
- package/_cjs/client/errors.cjs +1 -1
- package/_cjs/client/req.cjs +1 -1
- package/_cjs/http/Request.cjs +1 -1
- package/_cjs/index.cjs +1 -1
- package/_cjs/{Prelude.cjs → internal/Prelude.cjs} +1 -1
- package/_cjs/{lib.cjs → internal/lib.cjs} +6 -6
- package/_cjs/internal/lib.cjs.map +1 -0
- package/dist/Schema/ext.d.ts +1 -1
- package/dist/Schema/ext.d.ts.map +1 -1
- package/dist/client/clientFor.d.ts +2 -2
- package/dist/client/clientFor.d.ts.map +1 -1
- package/dist/client/clientFor.js +2 -2
- package/dist/client/config.d.ts +1 -1
- package/dist/client/config.d.ts.map +1 -1
- package/dist/client/config.js +2 -2
- package/dist/client/errors.d.ts +1 -1
- package/dist/client/errors.d.ts.map +1 -1
- package/dist/client/errors.js +2 -2
- package/dist/client/req.d.ts +1 -1
- package/dist/client/req.d.ts.map +1 -1
- package/dist/client/req.js +2 -2
- package/dist/http/Request.d.ts +1 -1
- package/dist/http/Request.d.ts.map +1 -1
- package/dist/http/Request.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/{lib.d.ts → internal/lib.d.ts} +7 -7
- package/dist/internal/lib.d.ts.map +1 -0
- package/dist/internal/lib.js +20 -0
- package/package.json +8 -18
- package/src/Schema/ext.ts +1 -1
- package/src/client/clientFor.ts +2 -2
- package/src/client/config.ts +1 -1
- package/src/client/errors.ts +1 -1
- package/src/client/req.ts +1 -1
- package/src/http/Request.ts +1 -1
- package/src/index.ts +1 -1
- package/src/internal/Prelude.d.ts +163 -0
- package/src/internal/Prelude.d.ts.map +1 -0
- package/src/{lib.ts → internal/lib.ts} +7 -7
- package/_cjs/Prelude.code.cjs +0 -53
- package/_cjs/Prelude.code.cjs.map +0 -1
- package/_cjs/lib.cjs.map +0 -1
- package/dist/Prelude.code.d.ts +0 -25
- package/dist/Prelude.code.d.ts.map +0 -1
- package/dist/lib.d.ts.map +0 -1
- package/dist/lib.js +0 -20
- package/src/Prelude.code.ts +0 -27
- package/src/Prelude.ts +0 -220
- /package/_cjs/{Prelude.cjs.map → internal/Prelude.cjs.map} +0 -0
- /package/dist/{Prelude.d.ts → internal/Prelude.d.ts} +0 -0
- /package/dist/{Prelude.d.ts.map → internal/Prelude.d.ts.map} +0 -0
- /package/dist/{Prelude.js → internal/Prelude.js} +0 -0
- /package/{dist/Prelude.code.js → src/internal/Prelude.js} +0 -0
package/src/client/config.ts
CHANGED
package/src/client/errors.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TaggedError } from "effect-app/Schema"
|
|
2
2
|
import { makeFiberFailure } from "effect/Runtime"
|
|
3
|
-
import { Cause, S } from "../lib.js"
|
|
3
|
+
import { Cause, S } from "../internal/lib.js"
|
|
4
4
|
|
|
5
5
|
export const tryToJson = (error: { toJSON(): unknown; toString(): string }) => {
|
|
6
6
|
try {
|
package/src/client/req.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
4
|
|
|
5
|
-
import { S } from "../lib.js"
|
|
5
|
+
import { S } from "../internal/lib.js"
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Middleware is inactivate by default, the Key is optional in route context, and the service is optionally provided as Effect Context.
|
package/src/http/Request.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HttpClientResponse } from "@effect/platform/HttpClientResponse"
|
|
2
|
-
import { Effect, Option } from "../lib.js"
|
|
2
|
+
import { Effect, Option } from "../internal/lib.js"
|
|
3
3
|
import { HttpClient, HttpClientError, HttpClientRequest, HttpHeaders } from "./internal/lib.js"
|
|
4
4
|
|
|
5
5
|
export interface ResponseWithBody<A> extends Pick<HttpClientResponse, "headers" | "status" | "remoteAddress"> {
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* For namespace * exports to work, there must be a matching and USED `import type * as ` from the same file
|
|
3
|
+
* We need to handle the real exports separately in another file (Prelude.code.ts)
|
|
4
|
+
* and post build move the other file as .js counter part of this d.ts file.
|
|
5
|
+
*/
|
|
6
|
+
import type * as CTX from "effect-app/Context";
|
|
7
|
+
import type * as EFFECT from "effect-app/Effect";
|
|
8
|
+
import type * as NS from "effect-app/NonEmptySet";
|
|
9
|
+
import type * as SET from "effect-app/Set";
|
|
10
|
+
import type * as C from "effect/Cause";
|
|
11
|
+
import type * as CNK from "effect/Chunk";
|
|
12
|
+
import type * as CFG from "effect/Config";
|
|
13
|
+
import type * as DUR from "effect/Duration";
|
|
14
|
+
import type * as EITHER from "effect/Either";
|
|
15
|
+
import type * as EQL from "effect/Equal";
|
|
16
|
+
import type * as EQ from "effect/Equivalence";
|
|
17
|
+
import type * as EX from "effect/Exit";
|
|
18
|
+
import type * as FR from "effect/FiberRef";
|
|
19
|
+
import type * as HM from "effect/HashMap";
|
|
20
|
+
import type * as LAYER from "effect/Layer";
|
|
21
|
+
import type * as O from "effect/Option";
|
|
22
|
+
import type * as ORD from "effect/Order";
|
|
23
|
+
import type * as REF from "effect/Ref";
|
|
24
|
+
import type * as SCHEMA from "effect/Schema";
|
|
25
|
+
import type * as SCOPE from "effect/Scope";
|
|
26
|
+
export type { NonEmptyArray, NonEmptyReadonlyArray } from "effect-app/Array";
|
|
27
|
+
export declare namespace Effect {
|
|
28
|
+
export * from "effect-app/Effect";
|
|
29
|
+
export type Success<T extends Effect<any, any, any>> = EFFECT.Effect.Success<T>;
|
|
30
|
+
export type Error<T extends Effect<any, any, any>> = EFFECT.Effect.Error<T>;
|
|
31
|
+
export type Context<T extends Effect<any, any, any>> = EFFECT.Effect.Context<T>;
|
|
32
|
+
}
|
|
33
|
+
export type Effect<out A, out E = never, out R = never> = EFFECT.Effect<A, E, R>;
|
|
34
|
+
export declare namespace Layer {
|
|
35
|
+
export * from "effect/Layer";
|
|
36
|
+
export type Success<T extends Layer<never, any, any>> = LAYER.Layer.Success<T>;
|
|
37
|
+
export type Error<T extends Layer<never, any, any>> = LAYER.Layer.Error<T>;
|
|
38
|
+
export type Context<T extends Layer<never, any, any>> = LAYER.Layer.Context<T>;
|
|
39
|
+
}
|
|
40
|
+
export type Layer<in ROut, out E = never, out RIn = never> = LAYER.Layer<ROut, E, RIn>;
|
|
41
|
+
export declare namespace Either {
|
|
42
|
+
export * from "effect/Either";
|
|
43
|
+
}
|
|
44
|
+
/** @tsplus type effect/data/Either */
|
|
45
|
+
export type Either<R, L = never> = EITHER.Either<R, L>;
|
|
46
|
+
export declare namespace Order {
|
|
47
|
+
export * from "effect/Order";
|
|
48
|
+
}
|
|
49
|
+
/** @tsplus type effect/data/Order */
|
|
50
|
+
export type Order<in A> = ORD.Order<A>;
|
|
51
|
+
export declare namespace Ref {
|
|
52
|
+
export * from "effect/Ref";
|
|
53
|
+
}
|
|
54
|
+
/** @tsplus type effect/data/Ref */
|
|
55
|
+
export type Ref<in out A> = REF.Ref<A>;
|
|
56
|
+
export declare namespace Duration {
|
|
57
|
+
export * from "effect/Duration";
|
|
58
|
+
}
|
|
59
|
+
/** @tsplus type effect/data/Duration */
|
|
60
|
+
export type Duration = DUR.Duration;
|
|
61
|
+
export declare namespace Context {
|
|
62
|
+
export * from "effect-app/Context";
|
|
63
|
+
}
|
|
64
|
+
/** @tsplus type effect/data/Context */
|
|
65
|
+
export type Context<in Services> = CTX.Context<Services>;
|
|
66
|
+
export declare namespace FiberRef {
|
|
67
|
+
export * from "effect/FiberRef";
|
|
68
|
+
}
|
|
69
|
+
/** @tsplus type effect/data/FiberRef */
|
|
70
|
+
export type FiberRef<in out A> = FR.FiberRef<A>;
|
|
71
|
+
export declare namespace Cause {
|
|
72
|
+
export * from "effect/Cause";
|
|
73
|
+
}
|
|
74
|
+
/** @tsplus type effect/data/Cause */
|
|
75
|
+
export type Cause<A> = C.Cause<A>;
|
|
76
|
+
export declare namespace Exit {
|
|
77
|
+
export * from "effect/Exit";
|
|
78
|
+
}
|
|
79
|
+
/** @tsplus type effect/data/Exit */
|
|
80
|
+
export type Exit<A, E = never> = EX.Exit<A, E>;
|
|
81
|
+
export declare namespace HashMap {
|
|
82
|
+
export * from "effect/HashMap";
|
|
83
|
+
}
|
|
84
|
+
/** @tsplus type effect/data/HashMap */
|
|
85
|
+
export type HashMap<out Key, out Value> = HM.HashMap<Key, Value>;
|
|
86
|
+
export declare namespace Scope {
|
|
87
|
+
export * from "effect/Scope";
|
|
88
|
+
}
|
|
89
|
+
/** @tsplus type effect/data/Scope */
|
|
90
|
+
export type Scope = SCOPE.Scope;
|
|
91
|
+
export declare namespace Option {
|
|
92
|
+
export * from "effect/Option";
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @tsplus companion effect/data/Option.Ops
|
|
96
|
+
* @tsplus type effect/data/Option
|
|
97
|
+
*/
|
|
98
|
+
export type Option<A> = O.Option<A>;
|
|
99
|
+
export declare namespace Equivalence {
|
|
100
|
+
export * from "effect/Equivalence";
|
|
101
|
+
}
|
|
102
|
+
export type Equivalence<in A> = EQ.Equivalence<A>;
|
|
103
|
+
export declare namespace Config {
|
|
104
|
+
export * from "effect/Config";
|
|
105
|
+
}
|
|
106
|
+
export type Config<out A> = CFG.Config<A>;
|
|
107
|
+
export declare namespace Equal {
|
|
108
|
+
export * from "effect/Equal";
|
|
109
|
+
}
|
|
110
|
+
export type Equal = EQL.Equal;
|
|
111
|
+
export declare namespace Chunk {
|
|
112
|
+
export * from "effect/Chunk";
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* @tsplus companion effect/data/Chunk.Ops
|
|
116
|
+
* @tsplus type effect/data/Chunk
|
|
117
|
+
*/
|
|
118
|
+
export type Chunk<out A> = CNK.Chunk<A>;
|
|
119
|
+
export declare namespace NonEmptySet {
|
|
120
|
+
export * from "effect-app/NonEmptySet";
|
|
121
|
+
}
|
|
122
|
+
/** @tsplus type ets/NonEmptySet */
|
|
123
|
+
export type NonEmptySet<A> = NS.NonEmptySet<A>;
|
|
124
|
+
export declare namespace Record {
|
|
125
|
+
export * from "effect-app/Record";
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @tsplus type Record
|
|
129
|
+
* @tsplus type Iterable
|
|
130
|
+
* @tsplus companion effect/data/Record.Ops
|
|
131
|
+
* @tsplus companion effect/data/Record.Ops
|
|
132
|
+
*/
|
|
133
|
+
export type Record<K extends string | symbol | number, V> = globalThis.Record<K, V>;
|
|
134
|
+
export declare namespace Array {
|
|
135
|
+
export * from "effect-app/Array";
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* @tsplus type Array
|
|
139
|
+
* @tsplus type Iterable
|
|
140
|
+
* @tsplus companion effect/data/Array.Ops
|
|
141
|
+
* @tsplus companion effect/data/Array.Ops
|
|
142
|
+
*/
|
|
143
|
+
export type Array<A> = globalThis.ReadonlyArray<A>;
|
|
144
|
+
export declare namespace ReadonlySet {
|
|
145
|
+
export * from "effect-app/Set";
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* @tsplus type ets/Set
|
|
149
|
+
* @tsplus type ets/ReadonlySet
|
|
150
|
+
*/
|
|
151
|
+
export type ReadonlySet<A> = SET.Set<A>;
|
|
152
|
+
export declare namespace Schema {
|
|
153
|
+
export * from "effect/Schema";
|
|
154
|
+
export type Type<S> = SCHEMA.Schema.Type<S>;
|
|
155
|
+
export type Encoded<S> = SCHEMA.Schema.Encoded<S>;
|
|
156
|
+
export type Context<S> = SCHEMA.Schema.Context<S>;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* @tsplus type ets/Set
|
|
160
|
+
* @tsplus type ets/Schema
|
|
161
|
+
*/
|
|
162
|
+
export type Schema<in out A, in out I = A, out R = never> = SCHEMA.Schema<A, I, R>;
|
|
163
|
+
//# sourceMappingURL=Prelude.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Prelude.d.ts","sourceRoot":"","sources":["../src/Prelude.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAIH,OAAO,KAAK,KAAK,GAAG,MAAM,oBAAoB,CAAA;AAC9C,OAAO,KAAK,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,KAAK,EAAE,MAAM,wBAAwB,CAAA;AACjD,OAAO,KAAK,KAAK,GAAG,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,KAAK,CAAC,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,KAAK,GAAG,MAAM,cAAc,CAAA;AACxC,OAAO,KAAK,KAAK,GAAG,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,KAAK,GAAG,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,KAAK,GAAG,MAAM,cAAc,CAAA;AACxC,OAAO,KAAK,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,KAAK,KAAK,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,KAAK,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,CAAC,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,KAAK,GAAG,MAAM,cAAc,CAAA;AACxC,OAAO,KAAK,KAAK,GAAG,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAE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M,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;CAClD;AAED;;;GAGG;AACH,MAAM,MAAM,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { YieldWrap } from "effect/Utils"
|
|
2
2
|
import { Effect } from "./Prelude.js"
|
|
3
3
|
|
|
4
|
-
export * as Fnc from "
|
|
5
|
-
export * as Record from "
|
|
6
|
-
export * as Utils from "
|
|
4
|
+
export * as Fnc from "../Function.js"
|
|
5
|
+
export * as Record from "../Object.js"
|
|
6
|
+
export * as Utils from "../utils.js"
|
|
7
7
|
|
|
8
8
|
export * from "effect"
|
|
9
9
|
|
|
@@ -33,11 +33,11 @@ export {
|
|
|
33
33
|
Scope
|
|
34
34
|
} from "./Prelude.js"
|
|
35
35
|
|
|
36
|
-
export * as Struct from "
|
|
36
|
+
export * as Struct from "../Struct.js"
|
|
37
37
|
|
|
38
|
-
export * as SecretURL from "
|
|
39
|
-
export * as S from "
|
|
40
|
-
export { copy } from "
|
|
38
|
+
export * as SecretURL from "../Config/SecretURL.js"
|
|
39
|
+
export * as S from "../Schema.js"
|
|
40
|
+
export { copy } from "../utils.js"
|
|
41
41
|
|
|
42
42
|
// Simply Effect! https://github.com/kasperpeulen/simply-effect
|
|
43
43
|
type InferE<Eff extends YieldWrap<Effect<any, any, any>>> = [
|
package/_cjs/Prelude.code.cjs
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Set = exports.Scope = exports.Schema = exports.Ref = exports.Record = exports.Order = exports.Option = exports.NonEmptySet = exports.Layer = exports.HashMap = exports.FiberRef = exports.Exit = exports.Equivalence = exports.Equal = exports.Either = exports.Effect = exports.Duration = exports.Context = exports.Config = exports.Chunk = exports.Cause = exports.Array = void 0;
|
|
7
|
-
var _Context = _interopRequireWildcard(require("effect-app/Context"));
|
|
8
|
-
exports.Context = _Context;
|
|
9
|
-
var _Effect = _interopRequireWildcard(require("effect-app/Effect"));
|
|
10
|
-
exports.Effect = _Effect;
|
|
11
|
-
var _Cause = _interopRequireWildcard(require("effect/Cause"));
|
|
12
|
-
exports.Cause = _Cause;
|
|
13
|
-
var _Chunk = _interopRequireWildcard(require("effect/Chunk"));
|
|
14
|
-
exports.Chunk = _Chunk;
|
|
15
|
-
var _Config = _interopRequireWildcard(require("effect/Config"));
|
|
16
|
-
exports.Config = _Config;
|
|
17
|
-
var _Duration = _interopRequireWildcard(require("effect/Duration"));
|
|
18
|
-
exports.Duration = _Duration;
|
|
19
|
-
var _Either = _interopRequireWildcard(require("effect/Either"));
|
|
20
|
-
exports.Either = _Either;
|
|
21
|
-
var _Equal = _interopRequireWildcard(require("effect/Equal"));
|
|
22
|
-
exports.Equal = _Equal;
|
|
23
|
-
var _Equivalence = _interopRequireWildcard(require("effect/Equivalence"));
|
|
24
|
-
exports.Equivalence = _Equivalence;
|
|
25
|
-
var _Exit = _interopRequireWildcard(require("effect/Exit"));
|
|
26
|
-
exports.Exit = _Exit;
|
|
27
|
-
var _FiberRef = _interopRequireWildcard(require("effect/FiberRef"));
|
|
28
|
-
exports.FiberRef = _FiberRef;
|
|
29
|
-
var _HashMap = _interopRequireWildcard(require("effect/HashMap"));
|
|
30
|
-
exports.HashMap = _HashMap;
|
|
31
|
-
var _Layer = _interopRequireWildcard(require("effect/Layer"));
|
|
32
|
-
exports.Layer = _Layer;
|
|
33
|
-
var _Option = _interopRequireWildcard(require("effect/Option"));
|
|
34
|
-
exports.Option = _Option;
|
|
35
|
-
var _Order = _interopRequireWildcard(require("effect/Order"));
|
|
36
|
-
exports.Order = _Order;
|
|
37
|
-
var _Ref = _interopRequireWildcard(require("effect/Ref"));
|
|
38
|
-
exports.Ref = _Ref;
|
|
39
|
-
var _Schema = _interopRequireWildcard(require("effect/Schema"));
|
|
40
|
-
exports.Schema = _Schema;
|
|
41
|
-
var _Scope = _interopRequireWildcard(require("effect/Scope"));
|
|
42
|
-
exports.Scope = _Scope;
|
|
43
|
-
var _NonEmptySet = _interopRequireWildcard(require("effect-app/NonEmptySet"));
|
|
44
|
-
exports.NonEmptySet = _NonEmptySet;
|
|
45
|
-
var _Set = _interopRequireWildcard(require("effect-app/Set"));
|
|
46
|
-
exports.Set = _Set;
|
|
47
|
-
var _Array = _interopRequireWildcard(require("effect-app/Array"));
|
|
48
|
-
exports.Array = _Array;
|
|
49
|
-
var _Record = _interopRequireWildcard(require("effect/Record"));
|
|
50
|
-
exports.Record = _Record;
|
|
51
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
52
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
53
|
-
//# sourceMappingURL=Prelude.code.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Prelude.code.cjs","names":[],"sources":["../src/Prelude.code.ts"],"sourcesContent":[null],"mappings":"","ignoreList":[]}
|
package/_cjs/lib.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lib.cjs","names":["_Prelude","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Fnc","_interopRequireWildcard","Fnc","_Record","Record","_Utils","Utils","_effect","_Struct","Struct","_SecretURL","SecretURL","_S","S","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","set","effect","f","arguments","length","bind","Effect","gen","args"],"sources":["../src/lib.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AAUAC,MAAA,CAAAC,IAAA,CAAAH,QAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,QAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,QAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AAA4B,IAAAS,IAAA,GAAAC,uBAAA,CAAAd,OAAA;AAAAS,OAAA,CAAAM,GAAA,GAAAF,IAAA;AAAA,IAAAG,OAAA,GAAAF,uBAAA,CAAAd,OAAA;AAAAS,OAAA,CAAAQ,MAAA,GAAAD,OAAA;AA4B5B,IAAAE,MAAA,GAAAJ,uBAAA,CAAAd,OAAA;AAAiCS,OAAA,CAAAU,KAAA,GAAAD,MAAA;AAhCjC,IAA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,UAAAC,CAAA,GAAApC,MAAA,CAAAS,cAAA,IAAAT,MAAA,CAAAqC,wBAAA,WAAAC,CAAA,IAAAX,CAAA,oBAAAW,CAAA,OAAAjC,cAAA,CAAAC,IAAA,CAAAqB,CAAA,EAAAW,CAAA,SAAAC,CAAA,GAAAH,CAAA,GAAApC,MAAA,CAAAqC,wBAAA,CAAAV,CAAA,EAAAW,CAAA,UAAAC,CAAA,KAAAA,CAAA,CAAA5B,GAAA,IAAA4B,CAAA,CAAAC,GAAA,IAAAxC,MAAA,CAAAS,cAAA,CAAAyB,CAAA,EAAAI,CAAA,EAAAC,CAAA,IAAAL,CAAA,CAAAI,CAAA,IAAAX,CAAA,CAAAW,CAAA,YAAAJ,CAAA,CAAAF,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAU,GAAA,CAAAb,CAAA,EAAAO,CAAA,GAAAA,CAAA;AAEtB;AACA;;AAyEM,SAAUO,MAAMA,CAAA;EACpB,MAAMC,CAAC,GAAGC,SAAS,CAACC,MAAM,KAAK,CAAC,GAAGD,SAAS,CAAC,CAAC,CAAC,GAAGA,SAAS,CAAC,CAAC,CAAC,CAACE,IAAI,CAACF,SAAS,CAAC,CAAC,CAAC,CAAC;EACjF,IAAID,CAAC,CAACE,MAAM,KAAK,CAAC,EAAE,OAAOE,eAAM,CAACC,GAAG,CAACL,CAAC,CAAC;EACxC,OAAO,CAAC,GAAGM,IAAS,KAAKF,eAAM,CAACC,GAAG,CAAC,MAAML,CAAC,CAAC,GAAGM,IAAI,CAAC,CAAC;AACvD","ignoreList":[]}
|
package/dist/Prelude.code.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export * as Context from "effect-app/Context";
|
|
2
|
-
export * as Effect from "effect-app/Effect";
|
|
3
|
-
export * as Cause from "effect/Cause";
|
|
4
|
-
export * as Chunk from "effect/Chunk";
|
|
5
|
-
export * as Config from "effect/Config";
|
|
6
|
-
export * as Duration from "effect/Duration";
|
|
7
|
-
export * as Either from "effect/Either";
|
|
8
|
-
export * as Equal from "effect/Equal";
|
|
9
|
-
export * as Equivalence from "effect/Equivalence";
|
|
10
|
-
export * as Exit from "effect/Exit";
|
|
11
|
-
export * as FiberRef from "effect/FiberRef";
|
|
12
|
-
export * as HashMap from "effect/HashMap";
|
|
13
|
-
export * as Layer from "effect/Layer";
|
|
14
|
-
export * as Option from "effect/Option";
|
|
15
|
-
export * as Order from "effect/Order";
|
|
16
|
-
export * as Ref from "effect/Ref";
|
|
17
|
-
export * as Schema from "effect/Schema";
|
|
18
|
-
export * as Scope from "effect/Scope";
|
|
19
|
-
export {} from "effect-app/Effect";
|
|
20
|
-
export * as NonEmptySet from "effect-app/NonEmptySet";
|
|
21
|
-
export {} from "effect-app/Option";
|
|
22
|
-
export * as Set from "effect-app/Set";
|
|
23
|
-
export * as Array from "effect-app/Array";
|
|
24
|
-
export * as Record from "effect/Record";
|
|
25
|
-
//# sourceMappingURL=Prelude.code.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Prelude.code.d.ts","sourceRoot":"","sources":["../src/Prelude.code.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAA;AACjD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAA;AACnC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,OAAO,MAAM,gBA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I,KAAK,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,GAChD,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;AAC5D,wBAAgB,MAAM,CACpB,IAAI,EACJ,GAAG,SAAS,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EAC5C,IAAI,EAEJ,IAAI,EAAE,IAAI,EACV,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,GAC7C,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;AACzC,wBAAgB,MAAM,CACpB,GAAG,SAAS,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EAC5C,IAAI,EACJ,IAAI,SAAS,GAAG,EAAE,EAClB,IAAI,EAEJ,IAAI,EAAE,IAAI,EACV,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,GAC5D,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA"}
|
package/dist/lib.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Effect } from "./Prelude.js";
|
|
2
|
-
export * as Fnc from "./Function.js";
|
|
3
|
-
export * as Record from "./Object.js";
|
|
4
|
-
export * as Utils from "./utils.js";
|
|
5
|
-
export * from "effect";
|
|
6
|
-
// we cannot export types colliding with namespaces from .ts files, only from .d.ts files with custom .js trick, applied in effect-app
|
|
7
|
-
// for app land, it may make sense to create an app/prelude?
|
|
8
|
-
export * from "./Prelude.js";
|
|
9
|
-
export { Array, Cause, Chunk, Config, Context, Duration, Effect, Either, Equal, Equivalence, Exit, FiberRef, HashMap, Layer, Option, Order, Ref, Schema, Scope } from "./Prelude.js";
|
|
10
|
-
export * as Struct from "./Struct.js";
|
|
11
|
-
export * as SecretURL from "./Config/SecretURL.js";
|
|
12
|
-
export * as S from "./Schema.js";
|
|
13
|
-
export { copy } from "./utils.js";
|
|
14
|
-
export function effect() {
|
|
15
|
-
const f = arguments.length === 1 ? arguments[0] : arguments[1].bind(arguments[0]);
|
|
16
|
-
if (f.length === 0)
|
|
17
|
-
return Effect.gen(f);
|
|
18
|
-
return (...args) => Effect.gen(() => f(...args));
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGliLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2xpYi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sY0FBYyxDQUFBO0FBRXJDLE9BQU8sS0FBSyxHQUFHLE1BQU0sZUFBZSxDQUFBO0FBQ3BDLE9BQU8sS0FBSyxNQUFNLE1BQU0sYUFBYSxDQUFBO0FBQ3JDLE9BQU8sS0FBSyxLQUFLLE1BQU0sWUFBWSxDQUFBO0FBRW5DLGNBQWMsUUFBUSxDQUFBO0FBRXRCLHNJQUFzSTtBQUN0SSw0REFBNEQ7QUFDNUQsY0FBYyxjQUFjLENBQUE7QUFFNUIsT0FBTyxFQUNMLEtBQUssRUFDTCxLQUFLLEVBQ0wsS0FBSyxFQUNMLE1BQU0sRUFDTixPQUFPLEVBQ1AsUUFBUSxFQUNSLE1BQU0sRUFDTixNQUFNLEVBQ04sS0FBSyxFQUNMLFdBQVcsRUFDWCxJQUFJLEVBQ0osUUFBUSxFQUNSLE9BQU8sRUFDUCxLQUFLLEVBQ0wsTUFBTSxFQUNOLEtBQUssRUFDTCxHQUFHLEVBQ0gsTUFBTSxFQUNOLEtBQUssRUFDTixNQUFNLGNBQWMsQ0FBQTtBQUVyQixPQUFPLEtBQUssTUFBTSxNQUFNLGFBQWEsQ0FBQTtBQUVyQyxPQUFPLEtBQUssU0FBUyxNQUFNLHVCQUF1QixDQUFBO0FBQ2xELE9BQU8sS0FBSyxDQUFDLE1BQU0sYUFBYSxDQUFBO0FBQ2hDLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxZQUFZLENBQUE7QUE0Q2pDLE1BQU0sVUFBVSxNQUFNO0lBQ3BCLE1BQU0sQ0FBQyxHQUFHLFNBQVMsQ0FBQyxNQUFNLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLFNBQVMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUE7SUFDakYsSUFBSSxDQUFDLENBQUMsTUFBTSxLQUFLLENBQUM7UUFBRSxPQUFPLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUE7SUFDeEMsT0FBTyxDQUFDLEdBQUcsSUFBUyxFQUFFLEVBQUUsQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsQ0FBQyxHQUFHLElBQUksQ0FBQyxDQUFDLENBQUE7QUFDdkQsQ0FBQyJ9
|
package/src/Prelude.code.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// TODO: Export order seems to be important? Somehow some cyclics?
|
|
2
|
-
export * as Context from "effect-app/Context"
|
|
3
|
-
export * as Effect from "effect-app/Effect"
|
|
4
|
-
export * as Cause from "effect/Cause"
|
|
5
|
-
export * as Chunk from "effect/Chunk"
|
|
6
|
-
export * as Config from "effect/Config"
|
|
7
|
-
export * as Duration from "effect/Duration"
|
|
8
|
-
export * as Either from "effect/Either"
|
|
9
|
-
export * as Equal from "effect/Equal"
|
|
10
|
-
export * as Equivalence from "effect/Equivalence"
|
|
11
|
-
export * as Exit from "effect/Exit"
|
|
12
|
-
export * as FiberRef from "effect/FiberRef"
|
|
13
|
-
export * as HashMap from "effect/HashMap"
|
|
14
|
-
export * as Layer from "effect/Layer"
|
|
15
|
-
export * as Option from "effect/Option"
|
|
16
|
-
export * as Order from "effect/Order"
|
|
17
|
-
export * as Ref from "effect/Ref"
|
|
18
|
-
export * as Schema from "effect/Schema"
|
|
19
|
-
export * as Scope from "effect/Scope"
|
|
20
|
-
|
|
21
|
-
export {} from "effect-app/Effect"
|
|
22
|
-
export * as NonEmptySet from "effect-app/NonEmptySet"
|
|
23
|
-
export {} from "effect-app/Option"
|
|
24
|
-
export * as Set from "effect-app/Set"
|
|
25
|
-
|
|
26
|
-
export * as Array from "effect-app/Array"
|
|
27
|
-
export * as Record from "effect/Record"
|
package/src/Prelude.ts
DELETED
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
/**
|
|
3
|
-
* For namespace * exports to work, there must be a matching and USED `import type * as ` from the same file
|
|
4
|
-
* We need to handle the real exports separately in another file (Prelude.code.ts)
|
|
5
|
-
* and post build move the other file as .js counter part of this d.ts file.
|
|
6
|
-
*/
|
|
7
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
8
|
-
/* eslint-disable unused-imports/no-unused-imports */
|
|
9
|
-
|
|
10
|
-
import type * as CTX from "effect-app/Context"
|
|
11
|
-
import type * as EFFECT from "effect-app/Effect"
|
|
12
|
-
import type * as NS from "effect-app/NonEmptySet"
|
|
13
|
-
import type * as SET from "effect-app/Set"
|
|
14
|
-
import type * as C from "effect/Cause"
|
|
15
|
-
import type * as CNK from "effect/Chunk"
|
|
16
|
-
import type * as CFG from "effect/Config"
|
|
17
|
-
import type * as DUR from "effect/Duration"
|
|
18
|
-
import type * as EITHER from "effect/Either"
|
|
19
|
-
import type * as EQL from "effect/Equal"
|
|
20
|
-
import type * as EQ from "effect/Equivalence"
|
|
21
|
-
import type * as EX from "effect/Exit"
|
|
22
|
-
import type * as FR from "effect/FiberRef"
|
|
23
|
-
import type * as HM from "effect/HashMap"
|
|
24
|
-
import type * as LAYER from "effect/Layer"
|
|
25
|
-
import type * as O from "effect/Option"
|
|
26
|
-
import type * as ORD from "effect/Order"
|
|
27
|
-
import type * as REF from "effect/Ref"
|
|
28
|
-
import type * as SCHEMA from "effect/Schema"
|
|
29
|
-
import type * as SCOPE from "effect/Scope"
|
|
30
|
-
|
|
31
|
-
export type { NonEmptyArray, NonEmptyReadonlyArray } from "effect-app/Array"
|
|
32
|
-
|
|
33
|
-
export namespace Effect {
|
|
34
|
-
// @ts-expect-error abc
|
|
35
|
-
export * from "effect-app/Effect"
|
|
36
|
-
export type Success<T extends Effect<any, any, any>> = EFFECT.Effect.Success<T>
|
|
37
|
-
export type Error<T extends Effect<any, any, any>> = EFFECT.Effect.Error<T>
|
|
38
|
-
export type Context<T extends Effect<any, any, any>> = EFFECT.Effect.Context<T>
|
|
39
|
-
}
|
|
40
|
-
export type Effect<out A, out E = never, out R = never> = EFFECT.Effect<A, E, R>
|
|
41
|
-
|
|
42
|
-
export namespace Layer {
|
|
43
|
-
// @ts-ignore
|
|
44
|
-
export * from "effect/Layer"
|
|
45
|
-
export type Success<T extends Layer<never, any, any>> = LAYER.Layer.Success<T>
|
|
46
|
-
export type Error<T extends Layer<never, any, any>> = LAYER.Layer.Error<T>
|
|
47
|
-
export type Context<T extends Layer<never, any, any>> = LAYER.Layer.Context<T>
|
|
48
|
-
}
|
|
49
|
-
export type Layer<in ROut, out E = never, out RIn = never> = LAYER.Layer<ROut, E, RIn>
|
|
50
|
-
|
|
51
|
-
export namespace Either {
|
|
52
|
-
// @ts-expect-error abc
|
|
53
|
-
export * from "effect/Either"
|
|
54
|
-
}
|
|
55
|
-
/** @tsplus type effect/data/Either */
|
|
56
|
-
export type Either<R, L = never> = EITHER.Either<R, L>
|
|
57
|
-
|
|
58
|
-
export namespace Order {
|
|
59
|
-
// @ts-expect-error abc
|
|
60
|
-
export * from "effect/Order"
|
|
61
|
-
}
|
|
62
|
-
/** @tsplus type effect/data/Order */
|
|
63
|
-
export type Order<in A> = ORD.Order<A>
|
|
64
|
-
|
|
65
|
-
export namespace Ref {
|
|
66
|
-
// @ts-expect-error abc
|
|
67
|
-
export * from "effect/Ref"
|
|
68
|
-
}
|
|
69
|
-
/** @tsplus type effect/data/Ref */
|
|
70
|
-
export type Ref<in out A> = REF.Ref<A>
|
|
71
|
-
|
|
72
|
-
export namespace Duration {
|
|
73
|
-
// @ts-expect-error abc
|
|
74
|
-
export * from "effect/Duration"
|
|
75
|
-
}
|
|
76
|
-
/** @tsplus type effect/data/Duration */
|
|
77
|
-
export type Duration = DUR.Duration
|
|
78
|
-
|
|
79
|
-
export namespace Context {
|
|
80
|
-
// @ts-expect-error abc
|
|
81
|
-
export * from "effect-app/Context"
|
|
82
|
-
}
|
|
83
|
-
/** @tsplus type effect/data/Context */
|
|
84
|
-
export type Context<in Services> = CTX.Context<Services>
|
|
85
|
-
|
|
86
|
-
export namespace FiberRef {
|
|
87
|
-
// @ts-expect-error abc
|
|
88
|
-
export * from "effect/FiberRef"
|
|
89
|
-
}
|
|
90
|
-
/** @tsplus type effect/data/FiberRef */
|
|
91
|
-
export type FiberRef<in out A> = FR.FiberRef<A>
|
|
92
|
-
|
|
93
|
-
export namespace Cause {
|
|
94
|
-
// @ts-expect-error abc
|
|
95
|
-
export * from "effect/Cause"
|
|
96
|
-
}
|
|
97
|
-
/** @tsplus type effect/data/Cause */
|
|
98
|
-
export type Cause<A> = C.Cause<A>
|
|
99
|
-
|
|
100
|
-
export namespace Exit {
|
|
101
|
-
// @ts-expect-error abc
|
|
102
|
-
export * from "effect/Exit"
|
|
103
|
-
}
|
|
104
|
-
/** @tsplus type effect/data/Exit */
|
|
105
|
-
export type Exit<A, E = never> = EX.Exit<A, E>
|
|
106
|
-
|
|
107
|
-
export namespace HashMap {
|
|
108
|
-
// @ts-expect-error abc
|
|
109
|
-
export * from "effect/HashMap"
|
|
110
|
-
}
|
|
111
|
-
/** @tsplus type effect/data/HashMap */
|
|
112
|
-
export type HashMap<out Key, out Value> = HM.HashMap<Key, Value>
|
|
113
|
-
|
|
114
|
-
export namespace Scope {
|
|
115
|
-
// @ts-expect-error abc
|
|
116
|
-
export * from "effect/Scope"
|
|
117
|
-
}
|
|
118
|
-
/** @tsplus type effect/data/Scope */
|
|
119
|
-
export type Scope = SCOPE.Scope
|
|
120
|
-
|
|
121
|
-
export namespace Option {
|
|
122
|
-
// @ts-expect-error abc
|
|
123
|
-
export * from "effect/Option"
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* @tsplus companion effect/data/Option.Ops
|
|
127
|
-
* @tsplus type effect/data/Option
|
|
128
|
-
*/
|
|
129
|
-
export type Option<A> = O.Option<A>
|
|
130
|
-
|
|
131
|
-
export namespace Equivalence {
|
|
132
|
-
// @ts-expect-error abc
|
|
133
|
-
export * from "effect/Equivalence"
|
|
134
|
-
}
|
|
135
|
-
export type Equivalence<in A> = EQ.Equivalence<A>
|
|
136
|
-
|
|
137
|
-
export namespace Config {
|
|
138
|
-
// @ts-expect-error abc
|
|
139
|
-
export * from "effect/Config"
|
|
140
|
-
}
|
|
141
|
-
export type Config<out A> = CFG.Config<A>
|
|
142
|
-
|
|
143
|
-
export namespace Equal {
|
|
144
|
-
// @ts-expect-error abc
|
|
145
|
-
export * from "effect/Equal"
|
|
146
|
-
}
|
|
147
|
-
export type Equal = EQL.Equal
|
|
148
|
-
|
|
149
|
-
export namespace Chunk {
|
|
150
|
-
// @ts-expect-error abc
|
|
151
|
-
export * from "effect/Chunk"
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* @tsplus companion effect/data/Chunk.Ops
|
|
155
|
-
* @tsplus type effect/data/Chunk
|
|
156
|
-
*/
|
|
157
|
-
export type Chunk<out A> = CNK.Chunk<A>
|
|
158
|
-
|
|
159
|
-
export namespace NonEmptySet {
|
|
160
|
-
// @ts-expect-error
|
|
161
|
-
export * from "effect-app/NonEmptySet"
|
|
162
|
-
}
|
|
163
|
-
/** @tsplus type ets/NonEmptySet */
|
|
164
|
-
export type NonEmptySet<A> = NS.NonEmptySet<A>
|
|
165
|
-
|
|
166
|
-
export namespace Record {
|
|
167
|
-
// @ts-expect-error
|
|
168
|
-
export * from "effect-app/Record"
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* @tsplus type Record
|
|
172
|
-
* @tsplus type Iterable
|
|
173
|
-
* @tsplus companion effect/data/Record.Ops
|
|
174
|
-
* @tsplus companion effect/data/Record.Ops
|
|
175
|
-
*/
|
|
176
|
-
export type Record<K extends string | symbol | number, V> = globalThis.Record<K, V>
|
|
177
|
-
|
|
178
|
-
export namespace Array {
|
|
179
|
-
// @ts-expect-error
|
|
180
|
-
export * from "effect-app/Array"
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* @tsplus type Array
|
|
184
|
-
* @tsplus type Iterable
|
|
185
|
-
* @tsplus companion effect/data/Array.Ops
|
|
186
|
-
* @tsplus companion effect/data/Array.Ops
|
|
187
|
-
*/
|
|
188
|
-
export type Array<A> = globalThis.ReadonlyArray<A>
|
|
189
|
-
|
|
190
|
-
// /**
|
|
191
|
-
// * @tsplus type NonEmptyReadonlyArray
|
|
192
|
-
// * @tsplus type Iterable
|
|
193
|
-
// * @tsplus companion effect/data/NonEmptyArray.Ops
|
|
194
|
-
// * @tsplus companion effect/data/NonEmptyArray.Ops
|
|
195
|
-
// */
|
|
196
|
-
// export type NonEmptyReadonlyArray<A> = ARR.NonEmptyReadonlyArray<A>
|
|
197
|
-
|
|
198
|
-
export namespace ReadonlySet {
|
|
199
|
-
// @ts-expect-error
|
|
200
|
-
export * from "effect-app/Set"
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* @tsplus type ets/Set
|
|
204
|
-
* @tsplus type ets/ReadonlySet
|
|
205
|
-
*/
|
|
206
|
-
export type ReadonlySet<A> = SET.Set<A>
|
|
207
|
-
|
|
208
|
-
export namespace Schema {
|
|
209
|
-
// @ts-expect-error
|
|
210
|
-
export * from "effect/Schema"
|
|
211
|
-
export type Type<S> = SCHEMA.Schema.Type<S>
|
|
212
|
-
export type Encoded<S> = SCHEMA.Schema.Encoded<S>
|
|
213
|
-
export type Context<S> = SCHEMA.Schema.Context<S>
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* @tsplus type ets/Set
|
|
218
|
-
* @tsplus type ets/Schema
|
|
219
|
-
*/
|
|
220
|
-
export type Schema<in out A, in out I = A, out R = never> = SCHEMA.Schema<A, I, R>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|