@lee-zg/melange 1.0.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/LICENSE +21 -0
- package/README.md +256 -0
- package/dist/chunk-2PXWQDZC.js +659 -0
- package/dist/chunk-2PXWQDZC.js.map +1 -0
- package/dist/chunk-352XNR3C.js +716 -0
- package/dist/chunk-352XNR3C.js.map +1 -0
- package/dist/chunk-7QVYU63E.js +6 -0
- package/dist/chunk-7QVYU63E.js.map +1 -0
- package/dist/chunk-ALBD5XC5.js +285 -0
- package/dist/chunk-ALBD5XC5.js.map +1 -0
- package/dist/chunk-O7K662J5.cjs +842 -0
- package/dist/chunk-O7K662J5.cjs.map +1 -0
- package/dist/chunk-PK6SKIKE.cjs +8 -0
- package/dist/chunk-PK6SKIKE.cjs.map +1 -0
- package/dist/chunk-Q73NOVWX.cjs +789 -0
- package/dist/chunk-Q73NOVWX.cjs.map +1 -0
- package/dist/chunk-Q7XG6YN6.cjs +682 -0
- package/dist/chunk-Q7XG6YN6.cjs.map +1 -0
- package/dist/chunk-YGMBCZJQ.js +833 -0
- package/dist/chunk-YGMBCZJQ.js.map +1 -0
- package/dist/chunk-ZT6HVG4G.cjs +330 -0
- package/dist/chunk-ZT6HVG4G.cjs.map +1 -0
- package/dist/core/index.cjs +97 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +718 -0
- package/dist/core/index.d.ts +718 -0
- package/dist/core/index.js +4 -0
- package/dist/core/index.js.map +1 -0
- package/dist/fp/index.cjs +185 -0
- package/dist/fp/index.cjs.map +1 -0
- package/dist/fp/index.d.cts +913 -0
- package/dist/fp/index.d.ts +913 -0
- package/dist/fp/index.js +4 -0
- package/dist/fp/index.js.map +1 -0
- package/dist/index.cjs +608 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +39 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -0
- package/dist/plugins/index.cjs +41 -0
- package/dist/plugins/index.cjs.map +1 -0
- package/dist/plugins/index.d.cts +643 -0
- package/dist/plugins/index.d.ts +643 -0
- package/dist/plugins/index.js +4 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/types-BtOUCLB-.d.cts +293 -0
- package/dist/types-BtOUCLB-.d.ts +293 -0
- package/dist/utils/index.cjs +297 -0
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.cts +1179 -0
- package/dist/utils/index.d.ts +1179 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +132 -0
package/dist/fp/index.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { allPass, alt, anyPass, apply, compose, constant, curry, err, filterOption, flatMapOption, flatMapResult, flip, flow, fromNullable, getOrElse, getOrElseL, identity, invert, isErr, isNone, isOk, isSome, mapOption, mapResult, matchOption, matchResult, memoize, none, noop, not, ok, once, partial, partialRight, pipe, some, tap, thunk, toNullable, tryCatch, tryCatchAsync, uncurry, unwrapOr, unwrapOrElse } from '../chunk-ALBD5XC5.js';
|
|
2
|
+
import '../chunk-7QVYU63E.js';
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,608 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZT6HVG4G_cjs = require('./chunk-ZT6HVG4G.cjs');
|
|
4
|
+
var chunkQ73NOVWX_cjs = require('./chunk-Q73NOVWX.cjs');
|
|
5
|
+
var chunkQ7XG6YN6_cjs = require('./chunk-Q7XG6YN6.cjs');
|
|
6
|
+
var chunkO7K662J5_cjs = require('./chunk-O7K662J5.cjs');
|
|
7
|
+
require('./chunk-PK6SKIKE.cjs');
|
|
8
|
+
|
|
9
|
+
// src/index.ts
|
|
10
|
+
var VERSION = "1.0.0";
|
|
11
|
+
var LIBRARY_NAME = "melange";
|
|
12
|
+
/**
|
|
13
|
+
* @fileoverview Melange 库的主入口点
|
|
14
|
+
* @module melange
|
|
15
|
+
* @description 一个现代化的 JavaScript/TypeScript 工具库,具有
|
|
16
|
+
* 函数式编程模式、面向对象工具和全面的类型支持。
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* // 导入所有内容
|
|
21
|
+
* import * as melange from 'melange';
|
|
22
|
+
*
|
|
23
|
+
* // 导入特定模块
|
|
24
|
+
* import { pipe, compose, curry } from 'melange/fp';
|
|
25
|
+
* import { debounce, throttle, deepClone } from 'melange/utils';
|
|
26
|
+
* import { EventEmitter, Container } from 'melange/core';
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @license MIT
|
|
30
|
+
* @author Melange 贡献者
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
Object.defineProperty(exports, "allPass", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return chunkZT6HVG4G_cjs.allPass; }
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "alt", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () { return chunkZT6HVG4G_cjs.alt; }
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "anyPass", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () { return chunkZT6HVG4G_cjs.anyPass; }
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(exports, "apply", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () { return chunkZT6HVG4G_cjs.apply; }
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(exports, "compose", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function () { return chunkZT6HVG4G_cjs.compose; }
|
|
52
|
+
});
|
|
53
|
+
Object.defineProperty(exports, "constant", {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: function () { return chunkZT6HVG4G_cjs.constant; }
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(exports, "curry", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () { return chunkZT6HVG4G_cjs.curry; }
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(exports, "err", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () { return chunkZT6HVG4G_cjs.err; }
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(exports, "filterOption", {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () { return chunkZT6HVG4G_cjs.filterOption; }
|
|
68
|
+
});
|
|
69
|
+
Object.defineProperty(exports, "flatMapOption", {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function () { return chunkZT6HVG4G_cjs.flatMapOption; }
|
|
72
|
+
});
|
|
73
|
+
Object.defineProperty(exports, "flatMapResult", {
|
|
74
|
+
enumerable: true,
|
|
75
|
+
get: function () { return chunkZT6HVG4G_cjs.flatMapResult; }
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports, "flip", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function () { return chunkZT6HVG4G_cjs.flip; }
|
|
80
|
+
});
|
|
81
|
+
Object.defineProperty(exports, "flow", {
|
|
82
|
+
enumerable: true,
|
|
83
|
+
get: function () { return chunkZT6HVG4G_cjs.flow; }
|
|
84
|
+
});
|
|
85
|
+
Object.defineProperty(exports, "fromNullable", {
|
|
86
|
+
enumerable: true,
|
|
87
|
+
get: function () { return chunkZT6HVG4G_cjs.fromNullable; }
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(exports, "getOrElse", {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: function () { return chunkZT6HVG4G_cjs.getOrElse; }
|
|
92
|
+
});
|
|
93
|
+
Object.defineProperty(exports, "getOrElseL", {
|
|
94
|
+
enumerable: true,
|
|
95
|
+
get: function () { return chunkZT6HVG4G_cjs.getOrElseL; }
|
|
96
|
+
});
|
|
97
|
+
Object.defineProperty(exports, "identity", {
|
|
98
|
+
enumerable: true,
|
|
99
|
+
get: function () { return chunkZT6HVG4G_cjs.identity; }
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(exports, "invert", {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
get: function () { return chunkZT6HVG4G_cjs.invert; }
|
|
104
|
+
});
|
|
105
|
+
Object.defineProperty(exports, "isErr", {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
get: function () { return chunkZT6HVG4G_cjs.isErr; }
|
|
108
|
+
});
|
|
109
|
+
Object.defineProperty(exports, "isNone", {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function () { return chunkZT6HVG4G_cjs.isNone; }
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(exports, "isOk", {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
get: function () { return chunkZT6HVG4G_cjs.isOk; }
|
|
116
|
+
});
|
|
117
|
+
Object.defineProperty(exports, "isSome", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function () { return chunkZT6HVG4G_cjs.isSome; }
|
|
120
|
+
});
|
|
121
|
+
Object.defineProperty(exports, "mapOption", {
|
|
122
|
+
enumerable: true,
|
|
123
|
+
get: function () { return chunkZT6HVG4G_cjs.mapOption; }
|
|
124
|
+
});
|
|
125
|
+
Object.defineProperty(exports, "mapResult", {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
get: function () { return chunkZT6HVG4G_cjs.mapResult; }
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(exports, "matchOption", {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () { return chunkZT6HVG4G_cjs.matchOption; }
|
|
132
|
+
});
|
|
133
|
+
Object.defineProperty(exports, "matchResult", {
|
|
134
|
+
enumerable: true,
|
|
135
|
+
get: function () { return chunkZT6HVG4G_cjs.matchResult; }
|
|
136
|
+
});
|
|
137
|
+
Object.defineProperty(exports, "memoize", {
|
|
138
|
+
enumerable: true,
|
|
139
|
+
get: function () { return chunkZT6HVG4G_cjs.memoize; }
|
|
140
|
+
});
|
|
141
|
+
Object.defineProperty(exports, "none", {
|
|
142
|
+
enumerable: true,
|
|
143
|
+
get: function () { return chunkZT6HVG4G_cjs.none; }
|
|
144
|
+
});
|
|
145
|
+
Object.defineProperty(exports, "noop", {
|
|
146
|
+
enumerable: true,
|
|
147
|
+
get: function () { return chunkZT6HVG4G_cjs.noop; }
|
|
148
|
+
});
|
|
149
|
+
Object.defineProperty(exports, "not", {
|
|
150
|
+
enumerable: true,
|
|
151
|
+
get: function () { return chunkZT6HVG4G_cjs.not; }
|
|
152
|
+
});
|
|
153
|
+
Object.defineProperty(exports, "ok", {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function () { return chunkZT6HVG4G_cjs.ok; }
|
|
156
|
+
});
|
|
157
|
+
Object.defineProperty(exports, "once", {
|
|
158
|
+
enumerable: true,
|
|
159
|
+
get: function () { return chunkZT6HVG4G_cjs.once; }
|
|
160
|
+
});
|
|
161
|
+
Object.defineProperty(exports, "partial", {
|
|
162
|
+
enumerable: true,
|
|
163
|
+
get: function () { return chunkZT6HVG4G_cjs.partial; }
|
|
164
|
+
});
|
|
165
|
+
Object.defineProperty(exports, "partialRight", {
|
|
166
|
+
enumerable: true,
|
|
167
|
+
get: function () { return chunkZT6HVG4G_cjs.partialRight; }
|
|
168
|
+
});
|
|
169
|
+
Object.defineProperty(exports, "pipe", {
|
|
170
|
+
enumerable: true,
|
|
171
|
+
get: function () { return chunkZT6HVG4G_cjs.pipe; }
|
|
172
|
+
});
|
|
173
|
+
Object.defineProperty(exports, "some", {
|
|
174
|
+
enumerable: true,
|
|
175
|
+
get: function () { return chunkZT6HVG4G_cjs.some; }
|
|
176
|
+
});
|
|
177
|
+
Object.defineProperty(exports, "tap", {
|
|
178
|
+
enumerable: true,
|
|
179
|
+
get: function () { return chunkZT6HVG4G_cjs.tap; }
|
|
180
|
+
});
|
|
181
|
+
Object.defineProperty(exports, "thunk", {
|
|
182
|
+
enumerable: true,
|
|
183
|
+
get: function () { return chunkZT6HVG4G_cjs.thunk; }
|
|
184
|
+
});
|
|
185
|
+
Object.defineProperty(exports, "toNullable", {
|
|
186
|
+
enumerable: true,
|
|
187
|
+
get: function () { return chunkZT6HVG4G_cjs.toNullable; }
|
|
188
|
+
});
|
|
189
|
+
Object.defineProperty(exports, "tryCatch", {
|
|
190
|
+
enumerable: true,
|
|
191
|
+
get: function () { return chunkZT6HVG4G_cjs.tryCatch; }
|
|
192
|
+
});
|
|
193
|
+
Object.defineProperty(exports, "tryCatchAsync", {
|
|
194
|
+
enumerable: true,
|
|
195
|
+
get: function () { return chunkZT6HVG4G_cjs.tryCatchAsync; }
|
|
196
|
+
});
|
|
197
|
+
Object.defineProperty(exports, "uncurry", {
|
|
198
|
+
enumerable: true,
|
|
199
|
+
get: function () { return chunkZT6HVG4G_cjs.uncurry; }
|
|
200
|
+
});
|
|
201
|
+
Object.defineProperty(exports, "unwrapOr", {
|
|
202
|
+
enumerable: true,
|
|
203
|
+
get: function () { return chunkZT6HVG4G_cjs.unwrapOr; }
|
|
204
|
+
});
|
|
205
|
+
Object.defineProperty(exports, "unwrapOrElse", {
|
|
206
|
+
enumerable: true,
|
|
207
|
+
get: function () { return chunkZT6HVG4G_cjs.unwrapOrElse; }
|
|
208
|
+
});
|
|
209
|
+
Object.defineProperty(exports, "camelCase", {
|
|
210
|
+
enumerable: true,
|
|
211
|
+
get: function () { return chunkQ73NOVWX_cjs.camelCase; }
|
|
212
|
+
});
|
|
213
|
+
Object.defineProperty(exports, "capitalize", {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function () { return chunkQ73NOVWX_cjs.capitalize; }
|
|
216
|
+
});
|
|
217
|
+
Object.defineProperty(exports, "chunk", {
|
|
218
|
+
enumerable: true,
|
|
219
|
+
get: function () { return chunkQ73NOVWX_cjs.chunk; }
|
|
220
|
+
});
|
|
221
|
+
Object.defineProperty(exports, "collapseWhitespace", {
|
|
222
|
+
enumerable: true,
|
|
223
|
+
get: function () { return chunkQ73NOVWX_cjs.collapseWhitespace; }
|
|
224
|
+
});
|
|
225
|
+
Object.defineProperty(exports, "constantCase", {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
get: function () { return chunkQ73NOVWX_cjs.constantCase; }
|
|
228
|
+
});
|
|
229
|
+
Object.defineProperty(exports, "countOccurrences", {
|
|
230
|
+
enumerable: true,
|
|
231
|
+
get: function () { return chunkQ73NOVWX_cjs.countOccurrences; }
|
|
232
|
+
});
|
|
233
|
+
Object.defineProperty(exports, "createDeferred", {
|
|
234
|
+
enumerable: true,
|
|
235
|
+
get: function () { return chunkQ73NOVWX_cjs.createDeferred; }
|
|
236
|
+
});
|
|
237
|
+
Object.defineProperty(exports, "debounce", {
|
|
238
|
+
enumerable: true,
|
|
239
|
+
get: function () { return chunkQ73NOVWX_cjs.debounce; }
|
|
240
|
+
});
|
|
241
|
+
Object.defineProperty(exports, "deepClone", {
|
|
242
|
+
enumerable: true,
|
|
243
|
+
get: function () { return chunkQ73NOVWX_cjs.deepClone; }
|
|
244
|
+
});
|
|
245
|
+
Object.defineProperty(exports, "deepMerge", {
|
|
246
|
+
enumerable: true,
|
|
247
|
+
get: function () { return chunkQ73NOVWX_cjs.deepMerge; }
|
|
248
|
+
});
|
|
249
|
+
Object.defineProperty(exports, "delay", {
|
|
250
|
+
enumerable: true,
|
|
251
|
+
get: function () { return chunkQ73NOVWX_cjs.delay; }
|
|
252
|
+
});
|
|
253
|
+
Object.defineProperty(exports, "difference", {
|
|
254
|
+
enumerable: true,
|
|
255
|
+
get: function () { return chunkQ73NOVWX_cjs.difference; }
|
|
256
|
+
});
|
|
257
|
+
Object.defineProperty(exports, "escapeHtml", {
|
|
258
|
+
enumerable: true,
|
|
259
|
+
get: function () { return chunkQ73NOVWX_cjs.escapeHtml; }
|
|
260
|
+
});
|
|
261
|
+
Object.defineProperty(exports, "filterObject", {
|
|
262
|
+
enumerable: true,
|
|
263
|
+
get: function () { return chunkQ73NOVWX_cjs.filterObject; }
|
|
264
|
+
});
|
|
265
|
+
Object.defineProperty(exports, "first", {
|
|
266
|
+
enumerable: true,
|
|
267
|
+
get: function () { return chunkQ73NOVWX_cjs.first; }
|
|
268
|
+
});
|
|
269
|
+
Object.defineProperty(exports, "flatten", {
|
|
270
|
+
enumerable: true,
|
|
271
|
+
get: function () { return chunkQ73NOVWX_cjs.flatten; }
|
|
272
|
+
});
|
|
273
|
+
Object.defineProperty(exports, "flattenDeep", {
|
|
274
|
+
enumerable: true,
|
|
275
|
+
get: function () { return chunkQ73NOVWX_cjs.flattenDeep; }
|
|
276
|
+
});
|
|
277
|
+
Object.defineProperty(exports, "get", {
|
|
278
|
+
enumerable: true,
|
|
279
|
+
get: function () { return chunkQ73NOVWX_cjs.get; }
|
|
280
|
+
});
|
|
281
|
+
Object.defineProperty(exports, "groupBy", {
|
|
282
|
+
enumerable: true,
|
|
283
|
+
get: function () { return chunkQ73NOVWX_cjs.groupBy; }
|
|
284
|
+
});
|
|
285
|
+
Object.defineProperty(exports, "has", {
|
|
286
|
+
enumerable: true,
|
|
287
|
+
get: function () { return chunkQ73NOVWX_cjs.has; }
|
|
288
|
+
});
|
|
289
|
+
Object.defineProperty(exports, "intersection", {
|
|
290
|
+
enumerable: true,
|
|
291
|
+
get: function () { return chunkQ73NOVWX_cjs.intersection; }
|
|
292
|
+
});
|
|
293
|
+
Object.defineProperty(exports, "isArray", {
|
|
294
|
+
enumerable: true,
|
|
295
|
+
get: function () { return chunkQ73NOVWX_cjs.isArray; }
|
|
296
|
+
});
|
|
297
|
+
Object.defineProperty(exports, "isBoolean", {
|
|
298
|
+
enumerable: true,
|
|
299
|
+
get: function () { return chunkQ73NOVWX_cjs.isBoolean; }
|
|
300
|
+
});
|
|
301
|
+
Object.defineProperty(exports, "isDate", {
|
|
302
|
+
enumerable: true,
|
|
303
|
+
get: function () { return chunkQ73NOVWX_cjs.isDate; }
|
|
304
|
+
});
|
|
305
|
+
Object.defineProperty(exports, "isEmail", {
|
|
306
|
+
enumerable: true,
|
|
307
|
+
get: function () { return chunkQ73NOVWX_cjs.isEmail; }
|
|
308
|
+
});
|
|
309
|
+
Object.defineProperty(exports, "isEmpty", {
|
|
310
|
+
enumerable: true,
|
|
311
|
+
get: function () { return chunkQ73NOVWX_cjs.isEmpty; }
|
|
312
|
+
});
|
|
313
|
+
Object.defineProperty(exports, "isFunction", {
|
|
314
|
+
enumerable: true,
|
|
315
|
+
get: function () { return chunkQ73NOVWX_cjs.isFunction; }
|
|
316
|
+
});
|
|
317
|
+
Object.defineProperty(exports, "isInRange", {
|
|
318
|
+
enumerable: true,
|
|
319
|
+
get: function () { return chunkQ73NOVWX_cjs.isInRange; }
|
|
320
|
+
});
|
|
321
|
+
Object.defineProperty(exports, "isInteger", {
|
|
322
|
+
enumerable: true,
|
|
323
|
+
get: function () { return chunkQ73NOVWX_cjs.isInteger; }
|
|
324
|
+
});
|
|
325
|
+
Object.defineProperty(exports, "isNegative", {
|
|
326
|
+
enumerable: true,
|
|
327
|
+
get: function () { return chunkQ73NOVWX_cjs.isNegative; }
|
|
328
|
+
});
|
|
329
|
+
Object.defineProperty(exports, "isNil", {
|
|
330
|
+
enumerable: true,
|
|
331
|
+
get: function () { return chunkQ73NOVWX_cjs.isNil; }
|
|
332
|
+
});
|
|
333
|
+
Object.defineProperty(exports, "isNotEmpty", {
|
|
334
|
+
enumerable: true,
|
|
335
|
+
get: function () { return chunkQ73NOVWX_cjs.isNotEmpty; }
|
|
336
|
+
});
|
|
337
|
+
Object.defineProperty(exports, "isNotNil", {
|
|
338
|
+
enumerable: true,
|
|
339
|
+
get: function () { return chunkQ73NOVWX_cjs.isNotNil; }
|
|
340
|
+
});
|
|
341
|
+
Object.defineProperty(exports, "isNumber", {
|
|
342
|
+
enumerable: true,
|
|
343
|
+
get: function () { return chunkQ73NOVWX_cjs.isNumber; }
|
|
344
|
+
});
|
|
345
|
+
Object.defineProperty(exports, "isObject", {
|
|
346
|
+
enumerable: true,
|
|
347
|
+
get: function () { return chunkQ73NOVWX_cjs.isObject; }
|
|
348
|
+
});
|
|
349
|
+
Object.defineProperty(exports, "isPlainObject", {
|
|
350
|
+
enumerable: true,
|
|
351
|
+
get: function () { return chunkQ73NOVWX_cjs.isPlainObject; }
|
|
352
|
+
});
|
|
353
|
+
Object.defineProperty(exports, "isPositive", {
|
|
354
|
+
enumerable: true,
|
|
355
|
+
get: function () { return chunkQ73NOVWX_cjs.isPositive; }
|
|
356
|
+
});
|
|
357
|
+
Object.defineProperty(exports, "isPromise", {
|
|
358
|
+
enumerable: true,
|
|
359
|
+
get: function () { return chunkQ73NOVWX_cjs.isPromise; }
|
|
360
|
+
});
|
|
361
|
+
Object.defineProperty(exports, "isString", {
|
|
362
|
+
enumerable: true,
|
|
363
|
+
get: function () { return chunkQ73NOVWX_cjs.isString; }
|
|
364
|
+
});
|
|
365
|
+
Object.defineProperty(exports, "isURL", {
|
|
366
|
+
enumerable: true,
|
|
367
|
+
get: function () { return chunkQ73NOVWX_cjs.isURL; }
|
|
368
|
+
});
|
|
369
|
+
Object.defineProperty(exports, "isUUID", {
|
|
370
|
+
enumerable: true,
|
|
371
|
+
get: function () { return chunkQ73NOVWX_cjs.isUUID; }
|
|
372
|
+
});
|
|
373
|
+
Object.defineProperty(exports, "kebabCase", {
|
|
374
|
+
enumerable: true,
|
|
375
|
+
get: function () { return chunkQ73NOVWX_cjs.kebabCase; }
|
|
376
|
+
});
|
|
377
|
+
Object.defineProperty(exports, "last", {
|
|
378
|
+
enumerable: true,
|
|
379
|
+
get: function () { return chunkQ73NOVWX_cjs.last; }
|
|
380
|
+
});
|
|
381
|
+
Object.defineProperty(exports, "mapValues", {
|
|
382
|
+
enumerable: true,
|
|
383
|
+
get: function () { return chunkQ73NOVWX_cjs.mapValues; }
|
|
384
|
+
});
|
|
385
|
+
Object.defineProperty(exports, "omit", {
|
|
386
|
+
enumerable: true,
|
|
387
|
+
get: function () { return chunkQ73NOVWX_cjs.omit; }
|
|
388
|
+
});
|
|
389
|
+
Object.defineProperty(exports, "padEnd", {
|
|
390
|
+
enumerable: true,
|
|
391
|
+
get: function () { return chunkQ73NOVWX_cjs.padEnd; }
|
|
392
|
+
});
|
|
393
|
+
Object.defineProperty(exports, "padStart", {
|
|
394
|
+
enumerable: true,
|
|
395
|
+
get: function () { return chunkQ73NOVWX_cjs.padStart; }
|
|
396
|
+
});
|
|
397
|
+
Object.defineProperty(exports, "parallel", {
|
|
398
|
+
enumerable: true,
|
|
399
|
+
get: function () { return chunkQ73NOVWX_cjs.parallel; }
|
|
400
|
+
});
|
|
401
|
+
Object.defineProperty(exports, "partition", {
|
|
402
|
+
enumerable: true,
|
|
403
|
+
get: function () { return chunkQ73NOVWX_cjs.partition; }
|
|
404
|
+
});
|
|
405
|
+
Object.defineProperty(exports, "pascalCase", {
|
|
406
|
+
enumerable: true,
|
|
407
|
+
get: function () { return chunkQ73NOVWX_cjs.pascalCase; }
|
|
408
|
+
});
|
|
409
|
+
Object.defineProperty(exports, "pick", {
|
|
410
|
+
enumerable: true,
|
|
411
|
+
get: function () { return chunkQ73NOVWX_cjs.pick; }
|
|
412
|
+
});
|
|
413
|
+
Object.defineProperty(exports, "randomString", {
|
|
414
|
+
enumerable: true,
|
|
415
|
+
get: function () { return chunkQ73NOVWX_cjs.randomString; }
|
|
416
|
+
});
|
|
417
|
+
Object.defineProperty(exports, "range", {
|
|
418
|
+
enumerable: true,
|
|
419
|
+
get: function () { return chunkQ73NOVWX_cjs.range; }
|
|
420
|
+
});
|
|
421
|
+
Object.defineProperty(exports, "retry", {
|
|
422
|
+
enumerable: true,
|
|
423
|
+
get: function () { return chunkQ73NOVWX_cjs.retry; }
|
|
424
|
+
});
|
|
425
|
+
Object.defineProperty(exports, "reverse", {
|
|
426
|
+
enumerable: true,
|
|
427
|
+
get: function () { return chunkQ73NOVWX_cjs.reverse; }
|
|
428
|
+
});
|
|
429
|
+
Object.defineProperty(exports, "sample", {
|
|
430
|
+
enumerable: true,
|
|
431
|
+
get: function () { return chunkQ73NOVWX_cjs.sample; }
|
|
432
|
+
});
|
|
433
|
+
Object.defineProperty(exports, "sequence", {
|
|
434
|
+
enumerable: true,
|
|
435
|
+
get: function () { return chunkQ73NOVWX_cjs.sequence; }
|
|
436
|
+
});
|
|
437
|
+
Object.defineProperty(exports, "set", {
|
|
438
|
+
enumerable: true,
|
|
439
|
+
get: function () { return chunkQ73NOVWX_cjs.set; }
|
|
440
|
+
});
|
|
441
|
+
Object.defineProperty(exports, "shuffle", {
|
|
442
|
+
enumerable: true,
|
|
443
|
+
get: function () { return chunkQ73NOVWX_cjs.shuffle; }
|
|
444
|
+
});
|
|
445
|
+
Object.defineProperty(exports, "snakeCase", {
|
|
446
|
+
enumerable: true,
|
|
447
|
+
get: function () { return chunkQ73NOVWX_cjs.snakeCase; }
|
|
448
|
+
});
|
|
449
|
+
Object.defineProperty(exports, "sortBy", {
|
|
450
|
+
enumerable: true,
|
|
451
|
+
get: function () { return chunkQ73NOVWX_cjs.sortBy; }
|
|
452
|
+
});
|
|
453
|
+
Object.defineProperty(exports, "throttle", {
|
|
454
|
+
enumerable: true,
|
|
455
|
+
get: function () { return chunkQ73NOVWX_cjs.throttle; }
|
|
456
|
+
});
|
|
457
|
+
Object.defineProperty(exports, "timeout", {
|
|
458
|
+
enumerable: true,
|
|
459
|
+
get: function () { return chunkQ73NOVWX_cjs.timeout; }
|
|
460
|
+
});
|
|
461
|
+
Object.defineProperty(exports, "titleCase", {
|
|
462
|
+
enumerable: true,
|
|
463
|
+
get: function () { return chunkQ73NOVWX_cjs.titleCase; }
|
|
464
|
+
});
|
|
465
|
+
Object.defineProperty(exports, "truncate", {
|
|
466
|
+
enumerable: true,
|
|
467
|
+
get: function () { return chunkQ73NOVWX_cjs.truncate; }
|
|
468
|
+
});
|
|
469
|
+
Object.defineProperty(exports, "unescapeHtml", {
|
|
470
|
+
enumerable: true,
|
|
471
|
+
get: function () { return chunkQ73NOVWX_cjs.unescapeHtml; }
|
|
472
|
+
});
|
|
473
|
+
Object.defineProperty(exports, "unique", {
|
|
474
|
+
enumerable: true,
|
|
475
|
+
get: function () { return chunkQ73NOVWX_cjs.unique; }
|
|
476
|
+
});
|
|
477
|
+
Object.defineProperty(exports, "words", {
|
|
478
|
+
enumerable: true,
|
|
479
|
+
get: function () { return chunkQ73NOVWX_cjs.words; }
|
|
480
|
+
});
|
|
481
|
+
Object.defineProperty(exports, "zip", {
|
|
482
|
+
enumerable: true,
|
|
483
|
+
get: function () { return chunkQ73NOVWX_cjs.zip; }
|
|
484
|
+
});
|
|
485
|
+
Object.defineProperty(exports, "Bind", {
|
|
486
|
+
enumerable: true,
|
|
487
|
+
get: function () { return chunkQ7XG6YN6_cjs.Bind; }
|
|
488
|
+
});
|
|
489
|
+
Object.defineProperty(exports, "Container", {
|
|
490
|
+
enumerable: true,
|
|
491
|
+
get: function () { return chunkQ7XG6YN6_cjs.Container; }
|
|
492
|
+
});
|
|
493
|
+
Object.defineProperty(exports, "Debounce", {
|
|
494
|
+
enumerable: true,
|
|
495
|
+
get: function () { return chunkQ7XG6YN6_cjs.Debounce; }
|
|
496
|
+
});
|
|
497
|
+
Object.defineProperty(exports, "Deprecated", {
|
|
498
|
+
enumerable: true,
|
|
499
|
+
get: function () { return chunkQ7XG6YN6_cjs.Deprecated; }
|
|
500
|
+
});
|
|
501
|
+
Object.defineProperty(exports, "Disposable", {
|
|
502
|
+
enumerable: true,
|
|
503
|
+
get: function () { return chunkQ7XG6YN6_cjs.Disposable; }
|
|
504
|
+
});
|
|
505
|
+
Object.defineProperty(exports, "DisposableStore", {
|
|
506
|
+
enumerable: true,
|
|
507
|
+
get: function () { return chunkQ7XG6YN6_cjs.DisposableStore; }
|
|
508
|
+
});
|
|
509
|
+
Object.defineProperty(exports, "EventEmitter", {
|
|
510
|
+
enumerable: true,
|
|
511
|
+
get: function () { return chunkQ7XG6YN6_cjs.EventEmitter; }
|
|
512
|
+
});
|
|
513
|
+
Object.defineProperty(exports, "Frozen", {
|
|
514
|
+
enumerable: true,
|
|
515
|
+
get: function () { return chunkQ7XG6YN6_cjs.Frozen; }
|
|
516
|
+
});
|
|
517
|
+
Object.defineProperty(exports, "Inject", {
|
|
518
|
+
enumerable: true,
|
|
519
|
+
get: function () { return chunkQ7XG6YN6_cjs.Inject; }
|
|
520
|
+
});
|
|
521
|
+
Object.defineProperty(exports, "Injectable", {
|
|
522
|
+
enumerable: true,
|
|
523
|
+
get: function () { return chunkQ7XG6YN6_cjs.Injectable; }
|
|
524
|
+
});
|
|
525
|
+
Object.defineProperty(exports, "Lifecycle", {
|
|
526
|
+
enumerable: true,
|
|
527
|
+
get: function () { return chunkQ7XG6YN6_cjs.Lifecycle; }
|
|
528
|
+
});
|
|
529
|
+
Object.defineProperty(exports, "Log", {
|
|
530
|
+
enumerable: true,
|
|
531
|
+
get: function () { return chunkQ7XG6YN6_cjs.Log; }
|
|
532
|
+
});
|
|
533
|
+
Object.defineProperty(exports, "Memoize", {
|
|
534
|
+
enumerable: true,
|
|
535
|
+
get: function () { return chunkQ7XG6YN6_cjs.Memoize; }
|
|
536
|
+
});
|
|
537
|
+
Object.defineProperty(exports, "Retry", {
|
|
538
|
+
enumerable: true,
|
|
539
|
+
get: function () { return chunkQ7XG6YN6_cjs.Retry; }
|
|
540
|
+
});
|
|
541
|
+
Object.defineProperty(exports, "Sealed", {
|
|
542
|
+
enumerable: true,
|
|
543
|
+
get: function () { return chunkQ7XG6YN6_cjs.Sealed; }
|
|
544
|
+
});
|
|
545
|
+
Object.defineProperty(exports, "Singleton", {
|
|
546
|
+
enumerable: true,
|
|
547
|
+
get: function () { return chunkQ7XG6YN6_cjs.Singleton; }
|
|
548
|
+
});
|
|
549
|
+
Object.defineProperty(exports, "Throttle", {
|
|
550
|
+
enumerable: true,
|
|
551
|
+
get: function () { return chunkQ7XG6YN6_cjs.Throttle; }
|
|
552
|
+
});
|
|
553
|
+
Object.defineProperty(exports, "Timeout", {
|
|
554
|
+
enumerable: true,
|
|
555
|
+
get: function () { return chunkQ7XG6YN6_cjs.Timeout; }
|
|
556
|
+
});
|
|
557
|
+
Object.defineProperty(exports, "Validate", {
|
|
558
|
+
enumerable: true,
|
|
559
|
+
get: function () { return chunkQ7XG6YN6_cjs.Validate; }
|
|
560
|
+
});
|
|
561
|
+
Object.defineProperty(exports, "combineDisposables", {
|
|
562
|
+
enumerable: true,
|
|
563
|
+
get: function () { return chunkQ7XG6YN6_cjs.combineDisposables; }
|
|
564
|
+
});
|
|
565
|
+
Object.defineProperty(exports, "globalContainer", {
|
|
566
|
+
enumerable: true,
|
|
567
|
+
get: function () { return chunkQ7XG6YN6_cjs.globalContainer; }
|
|
568
|
+
});
|
|
569
|
+
Object.defineProperty(exports, "toDisposable", {
|
|
570
|
+
enumerable: true,
|
|
571
|
+
get: function () { return chunkQ7XG6YN6_cjs.toDisposable; }
|
|
572
|
+
});
|
|
573
|
+
Object.defineProperty(exports, "SpeechRecognizerImpl", {
|
|
574
|
+
enumerable: true,
|
|
575
|
+
get: function () { return chunkO7K662J5_cjs.SpeechRecognizerImpl; }
|
|
576
|
+
});
|
|
577
|
+
Object.defineProperty(exports, "SpeechSynthesizerImpl", {
|
|
578
|
+
enumerable: true,
|
|
579
|
+
get: function () { return chunkO7K662J5_cjs.SpeechSynthesizerImpl; }
|
|
580
|
+
});
|
|
581
|
+
Object.defineProperty(exports, "createSpeechRecognizer", {
|
|
582
|
+
enumerable: true,
|
|
583
|
+
get: function () { return chunkO7K662J5_cjs.createSpeechRecognizer; }
|
|
584
|
+
});
|
|
585
|
+
Object.defineProperty(exports, "createSpeechSynthesizer", {
|
|
586
|
+
enumerable: true,
|
|
587
|
+
get: function () { return chunkO7K662J5_cjs.createSpeechSynthesizer; }
|
|
588
|
+
});
|
|
589
|
+
Object.defineProperty(exports, "isSpeechRecognitionSupported", {
|
|
590
|
+
enumerable: true,
|
|
591
|
+
get: function () { return chunkO7K662J5_cjs.isSpeechRecognitionSupported; }
|
|
592
|
+
});
|
|
593
|
+
Object.defineProperty(exports, "isSpeechSynthesisSupported", {
|
|
594
|
+
enumerable: true,
|
|
595
|
+
get: function () { return chunkO7K662J5_cjs.isSpeechSynthesisSupported; }
|
|
596
|
+
});
|
|
597
|
+
Object.defineProperty(exports, "listen", {
|
|
598
|
+
enumerable: true,
|
|
599
|
+
get: function () { return chunkO7K662J5_cjs.listen; }
|
|
600
|
+
});
|
|
601
|
+
Object.defineProperty(exports, "speak", {
|
|
602
|
+
enumerable: true,
|
|
603
|
+
get: function () { return chunkO7K662J5_cjs.speak; }
|
|
604
|
+
});
|
|
605
|
+
exports.LIBRARY_NAME = LIBRARY_NAME;
|
|
606
|
+
exports.VERSION = VERSION;
|
|
607
|
+
//# sourceMappingURL=index.cjs.map
|
|
608
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;AAyTO,IAAM,OAAA,GAAU;AAMhB,IAAM,YAAA,GAAe","file":"index.cjs","sourcesContent":["/**\n * @fileoverview Melange 库的主入口点\n * @module melange\n * @description 一个现代化的 JavaScript/TypeScript 工具库,具有\n * 函数式编程模式、面向对象工具和全面的类型支持。\n *\n * @example\n * ```typescript\n * // 导入所有内容\n * import * as melange from 'melange';\n *\n * // 导入特定模块\n * import { pipe, compose, curry } from 'melange/fp';\n * import { debounce, throttle, deepClone } from 'melange/utils';\n * import { EventEmitter, Container } from 'melange/core';\n * ```\n *\n * @license MIT\n * @author Melange 贡献者\n */\n\n// ============================================================================\n// 类型导出\n// ============================================================================\n\nexport type {\n // 基本类型\n Nullable,\n Optional,\n Primitive,\n AnyFunction,\n Constructor,\n // 函数类型\n Thunk,\n Predicate,\n Mapper,\n Reducer,\n Comparator,\n UnaryFunction,\n BinaryFunction,\n CurriedBinaryFunction,\n // Result 和 Option 类型\n Ok,\n Err,\n Result,\n Some,\n None,\n Option,\n // 异步类型\n AsyncFunction,\n AsyncThunk,\n Deferred,\n // 对象类型\n Dictionary,\n DeepPartial,\n DeepReadonly,\n RequiredKeys,\n OptionalKeys,\n Keys,\n Values,\n // 元组类型\n Pair,\n Triple,\n Head,\n Tail,\n // 装饰器类型\n ClassDecorator,\n MethodDecorator,\n PropertyDecorator,\n ParameterDecorator,\n // 事件类型\n EventHandler,\n EventListener,\n Subscription,\n // 品牌类型\n Brand,\n PositiveNumber,\n NonEmptyString,\n Email,\n UUID,\n // 实用类型\n ReturnTypeOf,\n ParametersOf,\n Mutable,\n JsonValue,\n JsonObject,\n JsonArray,\n} from './types';\n\n// ============================================================================\n// 函数式编程模块\n// ============================================================================\n\nexport {\n // 函数组合\n pipe,\n compose,\n flow,\n // 柯里化\n curry,\n uncurry,\n partial,\n partialRight,\n // Result 类型工具\n ok,\n err,\n isOk,\n isErr,\n mapResult,\n flatMapResult,\n unwrapOr,\n unwrapOrElse,\n matchResult,\n tryCatch,\n tryCatchAsync,\n // Option 类型工具\n some,\n none,\n isSome,\n isNone,\n fromNullable,\n mapOption,\n flatMapOption,\n getOrElse,\n getOrElseL,\n matchOption,\n toNullable,\n filterOption,\n alt,\n // 高阶函数\n memoize,\n once,\n tap,\n identity,\n constant,\n noop,\n not,\n allPass,\n anyPass,\n flip,\n apply,\n thunk,\n invert,\n} from './fp';\n\n// ============================================================================\n// 实用函数模块\n// ============================================================================\n\nexport {\n // 对象工具\n deepClone,\n deepMerge,\n pick,\n omit,\n get,\n set,\n has,\n isPlainObject,\n mapValues,\n filterObject,\n // 数组工具\n chunk,\n flatten,\n flattenDeep,\n unique,\n groupBy,\n sortBy,\n partition,\n zip,\n first,\n last,\n sample,\n shuffle,\n range,\n intersection,\n difference,\n // 字符串工具\n capitalize,\n camelCase,\n pascalCase,\n snakeCase,\n kebabCase,\n constantCase,\n truncate,\n padStart,\n padEnd,\n collapseWhitespace,\n escapeHtml,\n unescapeHtml,\n randomString,\n words,\n titleCase,\n reverse,\n countOccurrences,\n // 计时工具\n debounce,\n throttle,\n delay,\n retry,\n timeout,\n createDeferred,\n parallel,\n sequence,\n // 类型守卫\n isString,\n isNumber,\n isBoolean,\n isObject,\n isArray,\n isFunction,\n isNil,\n isNotNil,\n isEmpty,\n isNotEmpty,\n isDate,\n isPromise,\n // 验证工具\n isEmail,\n isUUID,\n isURL,\n isInteger,\n isPositive,\n isNegative,\n isInRange,\n} from './utils';\n\n// ============================================================================\n// 核心面向对象模块\n// ============================================================================\n\nexport {\n // 事件处理\n EventEmitter,\n // 依赖注入\n Container,\n globalContainer,\n Lifecycle,\n Injectable,\n Inject,\n Singleton,\n // 装饰器\n Memoize,\n Debounce,\n Throttle,\n Log,\n Validate,\n Deprecated,\n Sealed,\n Frozen,\n Bind,\n Retry,\n Timeout,\n // 基础类\n Disposable,\n DisposableStore,\n toDisposable,\n combineDisposables,\n} from './core';\n\n// ============================================================================\n// 插件模块\n// ============================================================================\n\nexport {\n // 语音合成\n SpeechSynthesizerImpl,\n createSpeechSynthesizer,\n isSpeechSynthesisSupported,\n speak,\n // 语音识别\n SpeechRecognizerImpl,\n createSpeechRecognizer,\n isSpeechRecognitionSupported,\n listen,\n} from './plugins';\n\n// 语音模块类型导出\nexport type {\n SpeechProviderType,\n SpeechServiceStatus,\n SpeechError,\n BaseSpeechConfig,\n VoiceInfo,\n SynthesisConfig,\n SynthesisEventType,\n SynthesisEvent,\n SynthesisEventHandler,\n SynthesisProvider,\n SpeechSynthesizer,\n RecognitionResultItem,\n RecognitionResult,\n RecognitionConfig,\n RecognitionEventType,\n RecognitionEvent,\n RecognitionEventHandler,\n RecognitionProvider,\n SpeechRecognizer,\n AzureSpeechConfig,\n GoogleSpeechConfig,\n AWSSpeechConfig,\n CustomProviderConfig,\n ProviderConfig,\n} from './plugins';\n\n// ============================================================================\n// 库版本\n// ============================================================================\n\n/**\n * 当前库版本\n * @constant\n */\nexport const VERSION = '1.0.0';\n\n/**\n * 库名\n * @constant\n */\nexport const LIBRARY_NAME = 'melange';\n"]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export { A as AnyFunction, h as AsyncFunction, i as AsyncThunk, B as BinaryFunction, y as Brand, r as ClassDecorator, b as Comparator, C as Constructor, c as CurriedBinaryFunction, k as DeepPartial, l as DeepReadonly, D as Deferred, j as Dictionary, G as Email, E as Err, v as EventHandler, w as EventListener, H as Head, Y as JsonArray, X as JsonObject, W as JsonValue, K as Keys, M as Mapper, s as MethodDecorator, Q as Mutable, F as NonEmptyString, f as None, N as Nullable, d as Ok, g as Option, O as Optional, n as OptionalKeys, o as Pair, u as ParameterDecorator, L as ParametersOf, z as PositiveNumber, a as Predicate, P as Primitive, t as PropertyDecorator, R as Reducer, m as RequiredKeys, e as Result, J as ReturnTypeOf, S as Some, x as Subscription, q as Tail, T as Thunk, p as Triple, I as UUID, U as UnaryFunction, V as Values } from './types-BtOUCLB-.cjs';
|
|
2
|
+
export { allPass, alt, anyPass, apply, compose, constant, curry, err, filterOption, flatMapOption, flatMapResult, flip, flow, fromNullable, getOrElse, getOrElseL, identity, invert, isErr, isNone, isOk, isSome, mapOption, mapResult, matchOption, matchResult, memoize, none, noop, not, ok, once, partial, partialRight, pipe, some, tap, thunk, toNullable, tryCatch, tryCatchAsync, uncurry, unwrapOr, unwrapOrElse } from './fp/index.cjs';
|
|
3
|
+
export { camelCase, capitalize, chunk, collapseWhitespace, constantCase, countOccurrences, createDeferred, debounce, deepClone, deepMerge, delay, difference, escapeHtml, filterObject, first, flatten, flattenDeep, get, groupBy, has, intersection, isArray, isBoolean, isDate, isEmail, isEmpty, isFunction, isInRange, isInteger, isNegative, isNil, isNotEmpty, isNotNil, isNumber, isObject, isPlainObject, isPositive, isPromise, isString, isURL, isUUID, kebabCase, last, mapValues, omit, padEnd, padStart, parallel, partition, pascalCase, pick, randomString, range, retry, reverse, sample, sequence, set, shuffle, snakeCase, sortBy, throttle, timeout, titleCase, truncate, unescapeHtml, unique, words, zip } from './utils/index.cjs';
|
|
4
|
+
export { Bind, Container, Debounce, Deprecated, Disposable, DisposableStore, EventEmitter, Frozen, Inject, Injectable, Lifecycle, Log, Memoize, Retry, Sealed, Singleton, Throttle, Timeout, Validate, combineDisposables, globalContainer, toDisposable } from './core/index.cjs';
|
|
5
|
+
export { AWSSpeechConfig, AzureSpeechConfig, BaseSpeechConfig, CustomProviderConfig, GoogleSpeechConfig, ProviderConfig, RecognitionConfig, RecognitionEvent, RecognitionEventHandler, RecognitionEventType, RecognitionProvider, RecognitionResult, RecognitionResultItem, SpeechError, SpeechProviderType, SpeechRecognizer, SpeechRecognizerImpl, SpeechServiceStatus, SpeechSynthesizer, SpeechSynthesizerImpl, SynthesisConfig, SynthesisEvent, SynthesisEventHandler, SynthesisEventType, SynthesisProvider, VoiceInfo, createSpeechRecognizer, createSpeechSynthesizer, isSpeechRecognitionSupported, isSpeechSynthesisSupported, listen, speak } from './plugins/index.cjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview Melange 库的主入口点
|
|
9
|
+
* @module melange
|
|
10
|
+
* @description 一个现代化的 JavaScript/TypeScript 工具库,具有
|
|
11
|
+
* 函数式编程模式、面向对象工具和全面的类型支持。
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* // 导入所有内容
|
|
16
|
+
* import * as melange from 'melange';
|
|
17
|
+
*
|
|
18
|
+
* // 导入特定模块
|
|
19
|
+
* import { pipe, compose, curry } from 'melange/fp';
|
|
20
|
+
* import { debounce, throttle, deepClone } from 'melange/utils';
|
|
21
|
+
* import { EventEmitter, Container } from 'melange/core';
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @license MIT
|
|
25
|
+
* @author Melange 贡献者
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 当前库版本
|
|
30
|
+
* @constant
|
|
31
|
+
*/
|
|
32
|
+
declare const VERSION = "1.0.0";
|
|
33
|
+
/**
|
|
34
|
+
* 库名
|
|
35
|
+
* @constant
|
|
36
|
+
*/
|
|
37
|
+
declare const LIBRARY_NAME = "melange";
|
|
38
|
+
|
|
39
|
+
export { LIBRARY_NAME, VERSION };
|