functype 0.44.0 → 0.45.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.
@@ -1,5 +1,5 @@
1
- import { t as Brand } from "./Brand-BPeggBaO.js";
2
- import { c as Pipe, l as Foldable, o as Serializable, r as Typeable, t as Tuple, u as Type } from "./Tuple-C4maYbiO.js";
1
+ import { t as Brand } from "./Brand-B_uQBKwR.js";
2
+ import { c as Pipe, l as Foldable, o as Serializable, r as Typeable, t as Tuple, u as Type } from "./Tuple-35L0I92q.js";
3
3
 
4
4
  //#region src/error/ParseError.d.ts
5
5
  declare const ParseError: (message?: string) => Error & {
@@ -1192,376 +1192,6 @@ declare class Throwable extends Error implements ThrowableType {
1192
1192
  }): ThrowableType;
1193
1193
  }
1194
1194
  //#endregion
1195
- //#region src/fpromise/FPromise.d.ts
1196
- /**
1197
- * Error context information that provides additional metadata about errors.
1198
- * This context is passed to error mapping functions to provide more information
1199
- * about the error that occurred.
1200
- *
1201
- * @property originalError - The original error that was thrown
1202
- * @property stack - The stack trace of the error, if available
1203
- * @property timestamp - The timestamp when the error occurred
1204
- */
1205
- type ErrorContext = {
1206
- originalError: unknown;
1207
- stack?: string;
1208
- timestamp: number;
1209
- };
1210
- /**
1211
- * FPromise is a functional wrapper around JavaScript's Promise with enhanced error handling.
1212
- * It implements the Functor and AsyncFunctor interfaces, providing map and flatMap operations
1213
- * for functional composition.
1214
- *
1215
- * FPromise adds several features not available in standard Promises:
1216
- * - Generic error typing for better type safety
1217
- * - Error recovery mechanisms (recover, recoverWith, recoverWithF)
1218
- * - Error filtering and categorization
1219
- * - Side effect methods (tap, tapError)
1220
- * - Error context preservation
1221
- * - Conversion to/from Either for more functional error handling
1222
- *
1223
- * @template T - The type of the value that the FPromise resolves to
1224
- * @template E - The type of the error that the FPromise may reject with (defaults to unknown)
1225
- */
1226
- /**
1227
- * FPromise type that defines the function signature and methods
1228
- */
1229
- type FPromise<T extends Type, E extends Type = unknown> = PromiseLike<T> & {
1230
- readonly _tag: "FPromise";
1231
- tap: (f: (value: T) => void) => FPromise<T, E>;
1232
- mapError: <E2>(f: (error: E, context: ErrorContext) => E2) => FPromise<T, E2>;
1233
- tapError: (f: (error: E) => void) => FPromise<T, E>;
1234
- recover: (fallback: T) => FPromise<T, never>;
1235
- recoverWith: (f: (error: E) => T) => FPromise<T, never>;
1236
- recoverWithF: <E2>(f: (error: E) => FPromise<T, E2>) => FPromise<T, E2>;
1237
- filterError: <E2 extends E>(predicate: (error: E) => boolean, handler: (error: E) => FPromise<T, E2>) => FPromise<T, E>;
1238
- logError: (logger: (error: E, context: ErrorContext) => void) => FPromise<T, E>;
1239
- toPromise: () => Promise<T>;
1240
- toEither: () => Promise<Either<E, T>>;
1241
- fold: <R$1 extends Type>(onError: (error: E) => R$1, onSuccess: (value: T) => R$1) => FPromise<R$1, never>;
1242
- map: <U extends Type>(f: (value: T) => U) => FPromise<U, E>;
1243
- flatMap: <U extends Type>(f: (value: T) => FPromise<U, E> | PromiseLike<U>) => FPromise<U, E>;
1244
- flatMapAsync: <U extends Type>(f: (value: T) => PromiseLike<U>) => Promise<U>;
1245
- };
1246
- /**
1247
- * Static utility methods for FPromise using the Companion pattern.
1248
- * These methods provide factory functions and utilities for working with FPromises.
1249
- */
1250
- declare const FPromiseCompanion: {
1251
- /**
1252
- * Creates an FPromise that resolves to the provided value.
1253
- *
1254
- * @template T - The type of the value
1255
- * @template E - The type of the error (defaults to never since this FPromise won't reject)
1256
- * @param value - The value to resolve with
1257
- * @returns An FPromise that resolves to the value
1258
- *
1259
- * @example
1260
- * const promise = FPromise.resolve(42)
1261
- * // promise resolves to 42
1262
- */
1263
- resolve: <T, E = never>(value: T | PromiseLike<T>) => FPromise<T, E>;
1264
- /**
1265
- * Creates an FPromise that rejects with the provided reason.
1266
- *
1267
- * @template T - The type of the value (which will never be produced)
1268
- * @template E - The type of the error
1269
- * @param reason - The reason for rejection
1270
- * @returns An FPromise that rejects with the reason
1271
- *
1272
- * @example
1273
- * const promise = FPromise.reject<number, Error>(new Error("Something went wrong"))
1274
- * // promise rejects with Error("Something went wrong")
1275
- */
1276
- reject: <T, E = unknown>(reason: E) => FPromise<T, E>;
1277
- /**
1278
- * Creates an FPromise from a regular Promise.
1279
- *
1280
- * @template T - The type of the value
1281
- * @template E - The type of the error
1282
- * @param promise - The Promise to convert
1283
- * @returns An FPromise that resolves or rejects with the same value or error
1284
- *
1285
- * @example
1286
- * const promise = FPromise.from(fetch("https://api.example.com/data"))
1287
- * // promise is an FPromise that resolves or rejects based on the fetch result
1288
- */
1289
- from: <T, E = unknown>(promise: Promise<T>) => FPromise<T, E>;
1290
- /**
1291
- * Creates an FPromise from an Either.
1292
- * If the Either is a Right, the FPromise resolves with the Right value.
1293
- * If the Either is a Left, the FPromise rejects with the Left value.
1294
- *
1295
- * @template L - The type of the Left value (error)
1296
- * @template R - The type of the Right value (success)
1297
- * @param either - The Either to convert
1298
- * @returns An FPromise that resolves or rejects based on the Either
1299
- *
1300
- * @example
1301
- * const either = Right<Error, number>(42)
1302
- * const promise = FPromise.fromEither(either)
1303
- * // promise resolves to 42
1304
- */
1305
- fromEither: <L, R$1>(either: Either<L, R$1>) => FPromise<R$1, L>;
1306
- /**
1307
- * Runs multiple FPromises in parallel and returns an array of results.
1308
- * Similar to Promise.all, this will reject if any of the promises reject.
1309
- *
1310
- * @template T - The type of the values
1311
- * @template E - The type of the error
1312
- * @param promises - An array of FPromises, Promises, or values
1313
- * @returns An FPromise that resolves to an array of results
1314
- *
1315
- * @example
1316
- * const promises = [FPromise.resolve(1), FPromise.resolve(2), 3]
1317
- * const result = await FPromise.all(promises).toPromise()
1318
- * // result is [1, 2, 3]
1319
- */
1320
- all: <T, E = unknown>(promises: Array<FPromise<T, E> | PromiseLike<T> | T>) => FPromise<T[], E>;
1321
- /**
1322
- * Like Promise.allSettled, returns results of all promises whether they succeed or fail.
1323
- * This will always resolve, never reject.
1324
- *
1325
- * @template T - The type of the values
1326
- * @template E - The type of the errors
1327
- * @param promises - An array of FPromises or Promises
1328
- * @returns An FPromise that resolves to an array of Either results
1329
- *
1330
- * @example
1331
- * const promises = [FPromise.resolve(1), FPromise.reject<number, Error>(new Error("Failed"))]
1332
- * const result = await FPromise.allSettled(promises).toPromise()
1333
- * // result is [Right(1), Left(Error("Failed"))]
1334
- */
1335
- allSettled: <T, E = unknown>(promises: Array<FPromise<T, E> | PromiseLike<T>>) => FPromise<Array<Either<E, T>>, never>;
1336
- /**
1337
- * Like Promise.race, returns the first promise to settle (either resolve or reject).
1338
- *
1339
- * @template T - The type of the values
1340
- * @template E - The type of the errors
1341
- * @param promises - An array of FPromises or Promises
1342
- * @returns An FPromise that resolves or rejects with the result of the first promise to settle
1343
- *
1344
- * @example
1345
- * const slow = FPromise.resolve(1).tap(() => new Promise(r => setTimeout(r, 100)))
1346
- * const fast = FPromise.resolve(2).tap(() => new Promise(r => setTimeout(r, 50)))
1347
- * const result = await FPromise.race([slow, fast]).toPromise()
1348
- * // result is 2
1349
- */
1350
- race: <T, E = unknown>(promises: Array<FPromise<T, E> | PromiseLike<T>>) => FPromise<T, E>;
1351
- /**
1352
- * Like Promise.any, returns the first promise to fulfill.
1353
- * This will only reject if all promises reject.
1354
- *
1355
- * @template T - The type of the values
1356
- * @template E - The type of the errors
1357
- * @param promises - An array of FPromises or Promises
1358
- * @returns An FPromise that resolves with the first promise to fulfill or rejects if all promises reject
1359
- *
1360
- * @example
1361
- * const promises = [
1362
- * FPromise.reject<number, Error>(new Error("First failed")),
1363
- * FPromise.resolve(2),
1364
- * FPromise.reject<number, Error>(new Error("Third failed"))
1365
- * ]
1366
- * const result = await FPromise.any(promises).toPromise()
1367
- * // result is 2
1368
- */
1369
- any: <T, E = unknown>(promises: Array<FPromise<T, E> | PromiseLike<T>>) => FPromise<T, E>;
1370
- /**
1371
- * Retries an operation with exponential backoff.
1372
- * This is useful for operations that may fail temporarily, such as network requests.
1373
- *
1374
- * @template T - The type of the value
1375
- * @template E - The type of the error
1376
- * @param operation - A function that returns an FPromise
1377
- * @param options - Configuration options for the retry
1378
- * @param options.maxRetries - Maximum number of retry attempts
1379
- * @param options.baseDelay - Base delay in milliseconds (default: 100)
1380
- * @param options.shouldRetry - Function that determines whether to retry based on the error (default: always retry)
1381
- * @returns An FPromise that resolves when the operation succeeds or rejects after all retries fail
1382
- *
1383
- * @example
1384
- * const operation = () => {
1385
- * if (Math.random() > 0.8) {
1386
- * return FPromise.resolve("Success!")
1387
- * }
1388
- * return FPromise.reject<string, Error>(new Error("Temporary failure"))
1389
- * }
1390
- *
1391
- * const result = await FPromise.retryWithBackoff(operation, {
1392
- * maxRetries: 3,
1393
- * baseDelay: 100,
1394
- * shouldRetry: (error) => error.message === "Temporary failure"
1395
- * }).toPromise()
1396
- */
1397
- retryWithBackoff: <T, E = unknown>(operation: () => FPromise<T, E>, options: {
1398
- maxRetries: number;
1399
- baseDelay?: number;
1400
- shouldRetry?: (error: E, attempt: number) => boolean;
1401
- }) => FPromise<T, E>;
1402
- };
1403
- /**
1404
- * Creates an FPromise from an executor function.
1405
- *
1406
- * @template T - The type of the value that the FPromise resolves to
1407
- * @template E - The type of the error that the FPromise may reject with
1408
- * @param executor - A function that receives resolve and reject functions
1409
- * @returns An FPromise instance
1410
- */
1411
- declare const FPromise: (<T extends Type, E = unknown>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: E) => void) => void) => FPromise<T, E>) & {
1412
- /**
1413
- * Creates an FPromise that resolves to the provided value.
1414
- *
1415
- * @template T - The type of the value
1416
- * @template E - The type of the error (defaults to never since this FPromise won't reject)
1417
- * @param value - The value to resolve with
1418
- * @returns An FPromise that resolves to the value
1419
- *
1420
- * @example
1421
- * const promise = FPromise.resolve(42)
1422
- * // promise resolves to 42
1423
- */
1424
- resolve: <T, E = never>(value: T | PromiseLike<T>) => FPromise<T, E>;
1425
- /**
1426
- * Creates an FPromise that rejects with the provided reason.
1427
- *
1428
- * @template T - The type of the value (which will never be produced)
1429
- * @template E - The type of the error
1430
- * @param reason - The reason for rejection
1431
- * @returns An FPromise that rejects with the reason
1432
- *
1433
- * @example
1434
- * const promise = FPromise.reject<number, Error>(new Error("Something went wrong"))
1435
- * // promise rejects with Error("Something went wrong")
1436
- */
1437
- reject: <T, E = unknown>(reason: E) => FPromise<T, E>;
1438
- /**
1439
- * Creates an FPromise from a regular Promise.
1440
- *
1441
- * @template T - The type of the value
1442
- * @template E - The type of the error
1443
- * @param promise - The Promise to convert
1444
- * @returns An FPromise that resolves or rejects with the same value or error
1445
- *
1446
- * @example
1447
- * const promise = FPromise.from(fetch("https://api.example.com/data"))
1448
- * // promise is an FPromise that resolves or rejects based on the fetch result
1449
- */
1450
- from: <T, E = unknown>(promise: Promise<T>) => FPromise<T, E>;
1451
- /**
1452
- * Creates an FPromise from an Either.
1453
- * If the Either is a Right, the FPromise resolves with the Right value.
1454
- * If the Either is a Left, the FPromise rejects with the Left value.
1455
- *
1456
- * @template L - The type of the Left value (error)
1457
- * @template R - The type of the Right value (success)
1458
- * @param either - The Either to convert
1459
- * @returns An FPromise that resolves or rejects based on the Either
1460
- *
1461
- * @example
1462
- * const either = Right<Error, number>(42)
1463
- * const promise = FPromise.fromEither(either)
1464
- * // promise resolves to 42
1465
- */
1466
- fromEither: <L, R$1>(either: Either<L, R$1>) => FPromise<R$1, L>;
1467
- /**
1468
- * Runs multiple FPromises in parallel and returns an array of results.
1469
- * Similar to Promise.all, this will reject if any of the promises reject.
1470
- *
1471
- * @template T - The type of the values
1472
- * @template E - The type of the error
1473
- * @param promises - An array of FPromises, Promises, or values
1474
- * @returns An FPromise that resolves to an array of results
1475
- *
1476
- * @example
1477
- * const promises = [FPromise.resolve(1), FPromise.resolve(2), 3]
1478
- * const result = await FPromise.all(promises).toPromise()
1479
- * // result is [1, 2, 3]
1480
- */
1481
- all: <T, E = unknown>(promises: Array<FPromise<T, E> | PromiseLike<T> | T>) => FPromise<T[], E>;
1482
- /**
1483
- * Like Promise.allSettled, returns results of all promises whether they succeed or fail.
1484
- * This will always resolve, never reject.
1485
- *
1486
- * @template T - The type of the values
1487
- * @template E - The type of the errors
1488
- * @param promises - An array of FPromises or Promises
1489
- * @returns An FPromise that resolves to an array of Either results
1490
- *
1491
- * @example
1492
- * const promises = [FPromise.resolve(1), FPromise.reject<number, Error>(new Error("Failed"))]
1493
- * const result = await FPromise.allSettled(promises).toPromise()
1494
- * // result is [Right(1), Left(Error("Failed"))]
1495
- */
1496
- allSettled: <T, E = unknown>(promises: Array<FPromise<T, E> | PromiseLike<T>>) => FPromise<Array<Either<E, T>>, never>;
1497
- /**
1498
- * Like Promise.race, returns the first promise to settle (either resolve or reject).
1499
- *
1500
- * @template T - The type of the values
1501
- * @template E - The type of the errors
1502
- * @param promises - An array of FPromises or Promises
1503
- * @returns An FPromise that resolves or rejects with the result of the first promise to settle
1504
- *
1505
- * @example
1506
- * const slow = FPromise.resolve(1).tap(() => new Promise(r => setTimeout(r, 100)))
1507
- * const fast = FPromise.resolve(2).tap(() => new Promise(r => setTimeout(r, 50)))
1508
- * const result = await FPromise.race([slow, fast]).toPromise()
1509
- * // result is 2
1510
- */
1511
- race: <T, E = unknown>(promises: Array<FPromise<T, E> | PromiseLike<T>>) => FPromise<T, E>;
1512
- /**
1513
- * Like Promise.any, returns the first promise to fulfill.
1514
- * This will only reject if all promises reject.
1515
- *
1516
- * @template T - The type of the values
1517
- * @template E - The type of the errors
1518
- * @param promises - An array of FPromises or Promises
1519
- * @returns An FPromise that resolves with the first promise to fulfill or rejects if all promises reject
1520
- *
1521
- * @example
1522
- * const promises = [
1523
- * FPromise.reject<number, Error>(new Error("First failed")),
1524
- * FPromise.resolve(2),
1525
- * FPromise.reject<number, Error>(new Error("Third failed"))
1526
- * ]
1527
- * const result = await FPromise.any(promises).toPromise()
1528
- * // result is 2
1529
- */
1530
- any: <T, E = unknown>(promises: Array<FPromise<T, E> | PromiseLike<T>>) => FPromise<T, E>;
1531
- /**
1532
- * Retries an operation with exponential backoff.
1533
- * This is useful for operations that may fail temporarily, such as network requests.
1534
- *
1535
- * @template T - The type of the value
1536
- * @template E - The type of the error
1537
- * @param operation - A function that returns an FPromise
1538
- * @param options - Configuration options for the retry
1539
- * @param options.maxRetries - Maximum number of retry attempts
1540
- * @param options.baseDelay - Base delay in milliseconds (default: 100)
1541
- * @param options.shouldRetry - Function that determines whether to retry based on the error (default: always retry)
1542
- * @returns An FPromise that resolves when the operation succeeds or rejects after all retries fail
1543
- *
1544
- * @example
1545
- * const operation = () => {
1546
- * if (Math.random() > 0.8) {
1547
- * return FPromise.resolve("Success!")
1548
- * }
1549
- * return FPromise.reject<string, Error>(new Error("Temporary failure"))
1550
- * }
1551
- *
1552
- * const result = await FPromise.retryWithBackoff(operation, {
1553
- * maxRetries: 3,
1554
- * baseDelay: 100,
1555
- * shouldRetry: (error) => error.message === "Temporary failure"
1556
- * }).toPromise()
1557
- */
1558
- retryWithBackoff: <T, E = unknown>(operation: () => FPromise<T, E>, options: {
1559
- maxRetries: number;
1560
- baseDelay?: number;
1561
- shouldRetry?: (error: E, attempt: number) => boolean;
1562
- }) => FPromise<T, E>;
1563
- };
1564
- //#endregion
1565
1195
  //#region src/core/task/Task.d.ts
1566
1196
  /**
1567
1197
  * Type definition for errors with a _tag property that identifies them as Throwables
@@ -1679,7 +1309,7 @@ declare const Task$1: (<T = unknown>(params?: TaskParams) => {
1679
1309
  * @param f - Optional finally handler function
1680
1310
  * @param cancellationToken - Optional token for cancellation support
1681
1311
  */
1682
- Async: <U = T>(t: () => U | Promise<U> | TaskOutcome<U> | Promise<TaskOutcome<U>>, e?: (error: unknown) => unknown | TaskOutcome<U>, f?: () => Promise<void> | void, cancellationToken?: CancellationToken) => FPromise<TaskOutcome<U>>;
1312
+ Async: <U = T>(t: () => U | Promise<U> | TaskOutcome<U> | Promise<TaskOutcome<U>>, e?: (error: unknown) => unknown | TaskOutcome<U>, f?: () => Promise<void> | void, cancellationToken?: CancellationToken) => Promise<TaskOutcome<U>>;
1683
1313
  /**
1684
1314
  * Run a synchronous operation with explicit try/catch/finally semantics
1685
1315
  * Returns a TaskOutcome for functional error handling
@@ -1699,7 +1329,7 @@ declare const Task$1: (<T = unknown>(params?: TaskParams) => {
1699
1329
  * @param f - Optional finally handler function
1700
1330
  * @param cancellationToken - Optional token for cancellation support
1701
1331
  */
1702
- AsyncWithProgress: <U = T>(t: (updateProgress: (percent: number) => void) => U | Promise<U> | TaskOutcome<U> | Promise<TaskOutcome<U>>, onProgress: (percent: number) => void, e?: (error: unknown) => unknown | TaskOutcome<U>, f?: () => Promise<void> | void, cancellationToken?: CancellationToken) => FPromise<TaskOutcome<U>>;
1332
+ AsyncWithProgress: <U = T>(t: (updateProgress: (percent: number) => void) => U | Promise<U> | TaskOutcome<U> | Promise<TaskOutcome<U>>, onProgress: (percent: number) => void, e?: (error: unknown) => unknown | TaskOutcome<U>, f?: () => Promise<void> | void, cancellationToken?: CancellationToken) => Promise<TaskOutcome<U>>;
1703
1333
  toString(): string;
1704
1334
  doUnwrap(): DoResult<unknown>;
1705
1335
  _tag: string;
@@ -1757,7 +1387,7 @@ declare const Task$1: (<T = unknown>(params?: TaskParams) => {
1757
1387
  /**
1758
1388
  * Convert a Promise-returning function to a Task-compatible function
1759
1389
  */
1760
- fromPromise: <U, Args extends unknown[]>(promiseFn: (...args: Args) => Promise<U>, params?: TaskParams) => ((...args: Args) => FPromise<TaskOutcome<U>>);
1390
+ fromPromise: <U, Args extends unknown[]>(promiseFn: (...args: Args) => Promise<U>, params?: TaskParams) => ((...args: Args) => Promise<TaskOutcome<U>>);
1761
1391
  /**
1762
1392
  * Convert a Task result to a Promise
1763
1393
  */
@@ -1766,21 +1396,21 @@ declare const Task$1: (<T = unknown>(params?: TaskParams) => {
1766
1396
  * Race multiple tasks and return the result of the first one to complete
1767
1397
  * Optionally specify a timeout after which the race will fail
1768
1398
  *
1769
- * @param tasks - Array of tasks to race (as FPromises)
1399
+ * @param tasks - Array of tasks to race (as Promises)
1770
1400
  * @param timeoutMs - Optional timeout in milliseconds
1771
1401
  * @param params - Task parameters for the race operation
1772
1402
  * @returns A promise that resolves with the first task to complete or rejects if all tasks fail
1773
1403
  */
1774
- race: <T>(tasks: Array<FPromise<T> | FPromise<TaskOutcome<T>>>, timeoutMs?: number, params?: TaskParams) => FPromise<TaskOutcome<T>>;
1404
+ race: <T>(tasks: Array<Promise<T> | Promise<TaskOutcome<T>>>, timeoutMs?: number, params?: TaskParams) => Promise<TaskOutcome<T>>;
1775
1405
  /**
1776
1406
  * Convert a Node.js style callback function to a Task-compatible function
1777
1407
  * Node.js callbacks typically have the signature (error, result) => void
1778
1408
  *
1779
1409
  * @param nodeFn - Function that accepts a Node.js style callback
1780
1410
  * @param params - Task parameters
1781
- * @returns A function that returns an FPromise
1411
+ * @returns A function that returns a Promise
1782
1412
  */
1783
- fromNodeCallback: <T, Args extends unknown[]>(nodeFn: (...args: [...Args, (error: unknown, result: T) => void]) => void, params?: TaskParams) => ((...args: Args) => FPromise<TaskOutcome<T>>);
1413
+ fromNodeCallback: <T, Args extends unknown[]>(nodeFn: (...args: [...Args, (error: unknown, result: T) => void]) => void, params?: TaskParams) => ((...args: Args) => Promise<TaskOutcome<T>>);
1784
1414
  /**
1785
1415
  * Create a cancellation token source
1786
1416
  * @returns A cancellation token source that can be used to control task cancellation
@@ -1794,7 +1424,7 @@ declare const Task$1: (<T = unknown>(params?: TaskParams) => {
1794
1424
  * @returns An object with the task and a function to cancel it
1795
1425
  */
1796
1426
  cancellable: <T>(task: (token: CancellationToken) => Promise<T> | Promise<TaskOutcome<T>>, params?: TaskParams) => {
1797
- task: FPromise<TaskOutcome<T>>;
1427
+ task: Promise<TaskOutcome<T>>;
1798
1428
  cancel: () => void;
1799
1429
  };
1800
1430
  /**
@@ -1806,7 +1436,7 @@ declare const Task$1: (<T = unknown>(params?: TaskParams) => {
1806
1436
  * @returns An object with the task, cancel function, and current progress
1807
1437
  */
1808
1438
  withProgress: <T>(task: (updateProgress: (percent: number) => void, token: CancellationToken) => Promise<T> | Promise<TaskOutcome<T>>, onProgress?: (percent: number) => void, params?: TaskParams) => {
1809
- task: FPromise<TaskOutcome<T>>;
1439
+ task: Promise<TaskOutcome<T>>;
1810
1440
  cancel: () => void;
1811
1441
  currentProgress: () => number;
1812
1442
  };
@@ -3897,6 +3527,18 @@ interface Map$1<K$1, V> extends SafeTraversable<K$1, V>, Collection<Tuple<[K$1,
3897
3527
  };
3898
3528
  }
3899
3529
  declare const Map$1: (<K$1, V>(entries?: readonly (readonly [K$1, V])[] | IterableIterator<[K$1, V]> | null) => Map$1<K$1, V>) & {
3530
+ /**
3531
+ * Creates an empty Map
3532
+ * Returns a singleton instance for efficiency
3533
+ * @returns An empty Map instance
3534
+ */
3535
+ empty: <K$1, V>() => Map$1<K$1, V>;
3536
+ /**
3537
+ * Creates a Map from variadic key-value pair arguments
3538
+ * @param entries - Key-value pairs to create map from
3539
+ * @returns A Map containing the entries
3540
+ */
3541
+ of: <K$1, V>(...entries: [K$1, V][]) => Map$1<K$1, V>;
3900
3542
  /**
3901
3543
  * Creates a Map from JSON string
3902
3544
  * @param json - The JSON string
@@ -4114,6 +3756,18 @@ interface Set<A> extends FunctypeCollection<A, "Set">, Collection<A> {
4114
3756
  toString: () => string;
4115
3757
  }
4116
3758
  declare const Set: (<A>(iterable?: Iterable<A>) => Set<A>) & {
3759
+ /**
3760
+ * Creates an empty Set
3761
+ * Returns a singleton instance for efficiency
3762
+ * @returns An empty Set instance
3763
+ */
3764
+ empty: <A extends Type>() => Set<A>;
3765
+ /**
3766
+ * Creates a Set from variadic arguments
3767
+ * @param values - Values to create set from
3768
+ * @returns A Set containing the unique values
3769
+ */
3770
+ of: <A extends Type>(...values: A[]) => Set<A>;
4117
3771
  /**
4118
3772
  * Creates a Set from JSON string
4119
3773
  * @param json - The JSON string
@@ -4532,6 +4186,18 @@ interface List<A> extends FunctypeCollection<A, "List">, Doable<A>, Reshapeable<
4532
4186
  }): R$1;
4533
4187
  }
4534
4188
  declare const List: (<A>(values?: Iterable<A>) => List<A>) & {
4189
+ /**
4190
+ * Creates an empty List
4191
+ * Returns a singleton instance for efficiency
4192
+ * @returns An empty List instance
4193
+ */
4194
+ empty: <A extends Type>() => List<A>;
4195
+ /**
4196
+ * Creates a List from variadic arguments
4197
+ * @param values - Values to create list from
4198
+ * @returns A List containing the values
4199
+ */
4200
+ of: <A extends Type>(...values: A[]) => List<A>;
4535
4201
  /**
4536
4202
  * Creates a List from JSON string
4537
4203
  * @param json - The JSON string
@@ -4972,4 +4638,4 @@ interface FailureErrorType extends Error {
4972
4638
  }
4973
4639
  declare const FailureError: (cause: Error, message?: string) => FailureErrorType;
4974
4640
  //#endregion
4975
- export { TestClockTag as $, TaskFailure as $t, OptionConstructor as A, PositiveNumber as An, ValidationRule as At, fromBinary as B, Functor as Bn, TaskErrorInfo as Bt, Functype as C, EmailAddress as Cn, OptionKind as Ct, List as D, NonNegativeNumber as Dn, FieldValidation as Dt, Collection as E, NonEmptyString as En, FoldableUtils as Et, Set as F, Try as Fn, TypedError as Ft, MatchableUtils as G, Extractable as Gn, Async as Gt, fromYAML as H, CollectionOps as Hn, formatError as Ht, SerializationResult as I, TypeNames as In, TypedErrorContext as It, Map$1 as J, Doable as Jn, Err as Jt, ESMap as K, isExtractable as Kn, CancellationToken as Kt, createCustomSerializer as L, Promisable as Ln, ErrorChainElement as Lt, Stack as M, UrlString as Mn, ErrorCode as Mt, Valuable as N, ValidatedBrand as Nn, ErrorMessage as Nt, None as O, PatternString as On, FormValidation as Ot, ValuableParams as P, ValidatedBrandCompanion as Pn, ErrorStatus as Pt, TestClock as Q, Task$1 as Qt, createSerializationCompanion as R, Applicative as Rn, ErrorFormatterOptions as Rt, tryCatchAsync as S, BoundedString as Sn, ListKind as St, FunctypeCollection as T, IntegerNumber as Tn, UniversalContainer as Tt, Ref as U, ContainerOps as Un, formatStackTrace as Ut, fromJSON as V, Monad as Vn, createErrorSerializer as Vt, Matchable as W, LazyList as Wn, safeStringify as Wt, Traversable as X, Sync as Xt, SafeTraversable as Y, ParseError as Yn, Ok as Yt, Lazy as Z, TaggedThrowable as Zt, TypeCheckLeft as _, CompanionMethods as _n, TagService as _t, EmptyListError as a, createCancellationTokenSource as an, TimeoutError as at, isRight as b, Companion as bn, HKT as bt, LeftError as c, FPromise as cn, LayerError as ct, isDoCapable as d, Throwable as dn, Exit as dt, TaskMetadata as en, TestContext as et, unwrap as f, ThrowableType as fn, ExitTag as ft, TestEither as g, Cond as gn, Tag as gt, Right as h, UntypedMatch as hn, HasService as ht, DoGenerator as i, TaskSuccess as in, Task as it, Some as j, UUID as jn, Validator as jt, Option as k, PositiveInteger as kn, Validation as kt, LeftErrorType as l, FPromiseCompanion as ln, LayerInput as lt, Left as m, Match as mn, ContextServices as mt, Do as n, TaskParams as nn, InterruptedError as nt, FailureError as o, isTaggedThrowable as on, UIO as ot, Either as p, Base as pn, Context as pt, ESMapType as q, DoResult as qn, CancellationTokenSource as qt, DoAsync as r, TaskResult as rn, RIO as rt, FailureErrorType as s, ErrorContext as sn, Layer as st, $ as t, TaskOutcome as tn, IO as tt, NoneError as u, NAME as un, LayerOutput as ut, TypeCheckRight as v, InstanceType as vn, Identity as vt, FunctypeBase as w, ISO8601Date as wn, TryKind as wt, tryCatch as x, BoundedNumber as xn, Kind as xt, isLeft as y, isCompanion as yn, EitherKind as yt, createSerializer as z, AsyncMonad as zn, ErrorWithTaskInfo as zt };
4641
+ export { TestClockTag as $, TaskFailure as $t, OptionConstructor as A, ValidatedBrand as An, ValidationRule as At, fromBinary as B, ContainerOps as Bn, TaskErrorInfo as Bt, Functype as C, NonEmptyString as Cn, OptionKind as Ct, List as D, PositiveNumber as Dn, FieldValidation as Dt, Collection as E, PositiveInteger as En, FoldableUtils as Et, Set as F, Applicative as Fn, TypedError as Ft, MatchableUtils as G, Doable as Gn, Async as Gt, fromYAML as H, Extractable as Hn, formatError as Ht, SerializationResult as I, AsyncMonad as In, TypedErrorContext as It, Map$1 as J, Err as Jt, ESMap as K, ParseError as Kn, CancellationToken as Kt, createCustomSerializer as L, Functor as Ln, ErrorChainElement as Lt, Stack as M, Try as Mn, ErrorCode as Mt, Valuable as N, TypeNames as Nn, ErrorMessage as Nt, None as O, UUID as On, FormValidation as Ot, ValuableParams as P, Promisable as Pn, ErrorStatus as Pt, TestClock as Q, Task$1 as Qt, createSerializationCompanion as R, Monad as Rn, ErrorFormatterOptions as Rt, tryCatchAsync as S, IntegerNumber as Sn, ListKind as St, FunctypeCollection as T, PatternString as Tn, UniversalContainer as Tt, Ref as U, isExtractable as Un, formatStackTrace as Ut, fromJSON as V, LazyList as Vn, createErrorSerializer as Vt, Matchable as W, DoResult as Wn, safeStringify as Wt, Traversable as X, Sync as Xt, SafeTraversable as Y, Ok as Yt, Lazy as Z, TaggedThrowable as Zt, TypeCheckLeft as _, Companion as _n, TagService as _t, EmptyListError as a, createCancellationTokenSource as an, TimeoutError as at, isRight as b, EmailAddress as bn, HKT as bt, LeftError as c, Throwable as cn, LayerError as ct, isDoCapable as d, Match as dn, Exit as dt, TaskMetadata as en, TestContext as et, unwrap as f, UntypedMatch as fn, ExitTag as ft, TestEither as g, isCompanion as gn, Tag as gt, Right as h, InstanceType as hn, HasService as ht, DoGenerator as i, TaskSuccess as in, Task as it, Some as j, ValidatedBrandCompanion as jn, Validator as jt, Option as k, UrlString as kn, Validation as kt, LeftErrorType as l, ThrowableType as ln, LayerInput as lt, Left as m, CompanionMethods as mn, ContextServices as mt, Do as n, TaskParams as nn, InterruptedError as nt, FailureError as o, isTaggedThrowable as on, UIO as ot, Either as p, Cond as pn, Context as pt, ESMapType as q, CancellationTokenSource as qt, DoAsync as r, TaskResult as rn, RIO as rt, FailureErrorType as s, NAME as sn, Layer as st, $ as t, TaskOutcome as tn, IO as tt, NoneError as u, Base as un, LayerOutput as ut, TypeCheckRight as v, BoundedNumber as vn, Identity as vt, FunctypeBase as w, NonNegativeNumber as wn, TryKind as wt, tryCatch as x, ISO8601Date as xn, Kind as xt, isLeft as y, BoundedString as yn, EitherKind as yt, createSerializer as z, CollectionOps as zn, ErrorWithTaskInfo as zt };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as ExtractBrand, c as hasBrand, i as BrandedString, l as unwrapBrand, n as BrandedBoolean, o as Unwrap, r as BrandedNumber, s as createBrander, t as Brand } from "./Brand-BPeggBaO.js";
2
- import { $ as TestClockTag, $t as TaskFailure, A as OptionConstructor, An as PositiveNumber, At as ValidationRule, B as fromBinary, Bn as Functor, Bt as TaskErrorInfo, C as Functype, Cn as EmailAddress, Ct as OptionKind, D as List, Dn as NonNegativeNumber, Dt as FieldValidation, E as Collection, En as NonEmptyString, Et as FoldableUtils, F as Set, Fn as Try, Ft as TypedError, G as MatchableUtils, Gn as Extractable, Gt as Async, H as fromYAML, Hn as CollectionOps, Ht as formatError, I as SerializationResult, In as TypeNames, It as TypedErrorContext, J as Map, Jn as Doable, Jt as Err, K as ESMap, Kn as isExtractable, Kt as CancellationToken, L as createCustomSerializer, Ln as Promisable, Lt as ErrorChainElement, M as Stack, Mn as UrlString, Mt as ErrorCode, N as Valuable, Nn as ValidatedBrand, Nt as ErrorMessage, O as None, On as PatternString, Ot as FormValidation, P as ValuableParams, Pn as ValidatedBrandCompanion, Pt as ErrorStatus, Q as TestClock, Qt as Task$1, R as createSerializationCompanion, Rn as Applicative, Rt as ErrorFormatterOptions, S as tryCatchAsync, Sn as BoundedString, St as ListKind, T as FunctypeCollection, Tn as IntegerNumber, Tt as UniversalContainer, U as Ref, Un as ContainerOps, Ut as formatStackTrace, V as fromJSON, Vn as Monad, Vt as createErrorSerializer, W as Matchable, Wn as LazyList, Wt as safeStringify, X as Traversable, Xt as Sync, Y as SafeTraversable, Yn as ParseError, Yt as Ok, Z as Lazy, Zt as TaggedThrowable, _ as TypeCheckLeft, _n as CompanionMethods, _t as TagService, a as EmptyListError, an as createCancellationTokenSource, at as TimeoutError, b as isRight, bn as Companion, bt as HKT, c as LeftError, cn as FPromise, ct as LayerError, d as isDoCapable, dn as Throwable, dt as Exit, en as TaskMetadata, et as TestContext, f as unwrap, fn as ThrowableType, ft as ExitTag, g as TestEither, gn as Cond, gt as Tag, h as Right, hn as UntypedMatch, ht as HasService, i as DoGenerator, in as TaskSuccess, it as Task, j as Some, jn as UUID, jt as Validator, k as Option, kn as PositiveInteger, kt as Validation, l as LeftErrorType, ln as FPromiseCompanion, lt as LayerInput, m as Left, mn as Match, mt as ContextServices, n as Do, nn as TaskParams, nt as InterruptedError, o as FailureError, on as isTaggedThrowable, ot as UIO, p as Either, pn as Base, pt as Context, q as ESMapType, qn as DoResult, qt as CancellationTokenSource, r as DoAsync, rn as TaskResult, rt as RIO, s as FailureErrorType, sn as ErrorContext, st as Layer, t as $, tn as TaskOutcome, tt as IO, u as NoneError, un as NAME, ut as LayerOutput, v as TypeCheckRight, vn as InstanceType, vt as Identity, w as FunctypeBase, wn as ISO8601Date, wt as TryKind, x as tryCatch, xn as BoundedNumber, xt as Kind, y as isLeft, yn as isCompanion, yt as EitherKind, z as createSerializer, zn as AsyncMonad, zt as ErrorWithTaskInfo } from "./index-DKAUrDCz.js";
3
- import { a as isTypeable, c as Pipe, i as TypeableParams, l as Foldable, n as ExtractTag, o as Serializable, r as Typeable, s as SerializationMethods, t as Tuple, u as Type } from "./Tuple-C4maYbiO.js";
4
- export { $, Applicative, Async, AsyncMonad, Base, BoundedNumber, BoundedString, Brand, BrandedBoolean, BrandedBoolean as BrandedBooleanType, BrandedNumber, BrandedNumber as BrandedNumberType, BrandedString, BrandedString as BrandedStringType, CancellationToken, CancellationTokenSource, Collection, CollectionOps, Companion, CompanionMethods, Cond, ContainerOps, Context, Context as ContextType, ContextServices, Do, DoAsync, DoGenerator, DoResult, Doable, ESMap, ESMapType, Either, EitherKind, EmailAddress, EmptyListError, Err, ErrorChainElement, ErrorCode, ErrorContext, ErrorFormatterOptions, ErrorMessage, ErrorStatus, ErrorWithTaskInfo, Exit, Exit as ExitType, ExitTag, ExtractBrand, ExtractTag, Extractable, FPromise, FPromiseCompanion, FailureError, FailureErrorType, FieldValidation, Foldable, FoldableUtils, FormValidation, Functor, Functype, FunctypeBase, FunctypeCollection, HKT, HasService, IO, IO as IOType, Task as IOTask, ISO8601Date, Identity, InstanceType, IntegerNumber, InterruptedError, Kind, Layer, Layer as LayerType, LayerError, LayerInput, LayerOutput, Lazy, Lazy as LazyType, LazyList, Left, LeftError, LeftErrorType, List, ListKind, Map, Match, Matchable, MatchableUtils, Monad, NAME, NonEmptyString, NonNegativeNumber, None, NoneError, Ok, Option, OptionConstructor, OptionKind, ParseError, PatternString, Pipe, PositiveInteger, PositiveNumber, Promisable, RIO, Ref, Ref as RefType, Right, SafeTraversable, Serializable, SerializationMethods, SerializationResult, Set, Some, Stack, Sync, Tag, Tag as TagType, TagService, TaggedThrowable, Task$1 as Task, TaskErrorInfo, TaskFailure, TaskMetadata, TaskOutcome, TaskParams, TaskResult, TaskSuccess, TestClock, TestClock as TestClockType, TestClockTag, TestContext, TestContext as TestContextType, TestEither, Throwable, ThrowableType, TimeoutError, Traversable, Try, TryKind, Tuple, Type, TypeCheckLeft, TypeCheckRight, TypeNames, Typeable, TypeableParams, TypedError, TypedErrorContext, UIO, UUID, UniversalContainer, UntypedMatch, Unwrap, UrlString, ValidatedBrand, ValidatedBrand as ValidatedBrandType, ValidatedBrandCompanion, Validation, ValidationRule, Validator, Valuable, ValuableParams, createBrander, createCancellationTokenSource, createCustomSerializer, createErrorSerializer, createSerializationCompanion, createSerializer, formatError, formatStackTrace, fromBinary, fromJSON, fromYAML, hasBrand, isCompanion, isDoCapable, isExtractable, isLeft, isRight, isTaggedThrowable, isTypeable, safeStringify, tryCatch, tryCatchAsync, unwrap, unwrapBrand };
1
+ import { a as ExtractBrand, c as hasBrand, i as BrandedString, l as unwrapBrand, n as BrandedBoolean, o as Unwrap, r as BrandedNumber, s as createBrander, t as Brand } from "./Brand-B_uQBKwR.js";
2
+ import { $ as TestClockTag, $t as TaskFailure, A as OptionConstructor, An as ValidatedBrand, At as ValidationRule, B as fromBinary, Bn as ContainerOps, Bt as TaskErrorInfo, C as Functype, Cn as NonEmptyString, Ct as OptionKind, D as List, Dn as PositiveNumber, Dt as FieldValidation, E as Collection, En as PositiveInteger, Et as FoldableUtils, F as Set, Fn as Applicative, Ft as TypedError, G as MatchableUtils, Gn as Doable, Gt as Async, H as fromYAML, Hn as Extractable, Ht as formatError, I as SerializationResult, In as AsyncMonad, It as TypedErrorContext, J as Map, Jt as Err, K as ESMap, Kn as ParseError, Kt as CancellationToken, L as createCustomSerializer, Ln as Functor, Lt as ErrorChainElement, M as Stack, Mn as Try, Mt as ErrorCode, N as Valuable, Nn as TypeNames, Nt as ErrorMessage, O as None, On as UUID, Ot as FormValidation, P as ValuableParams, Pn as Promisable, Pt as ErrorStatus, Q as TestClock, Qt as Task$1, R as createSerializationCompanion, Rn as Monad, Rt as ErrorFormatterOptions, S as tryCatchAsync, Sn as IntegerNumber, St as ListKind, T as FunctypeCollection, Tn as PatternString, Tt as UniversalContainer, U as Ref, Un as isExtractable, Ut as formatStackTrace, V as fromJSON, Vn as LazyList, Vt as createErrorSerializer, W as Matchable, Wn as DoResult, Wt as safeStringify, X as Traversable, Xt as Sync, Y as SafeTraversable, Yt as Ok, Z as Lazy, Zt as TaggedThrowable, _ as TypeCheckLeft, _n as Companion, _t as TagService, a as EmptyListError, an as createCancellationTokenSource, at as TimeoutError, b as isRight, bn as EmailAddress, bt as HKT, c as LeftError, cn as Throwable, ct as LayerError, d as isDoCapable, dn as Match, dt as Exit, en as TaskMetadata, et as TestContext, f as unwrap, fn as UntypedMatch, ft as ExitTag, g as TestEither, gn as isCompanion, gt as Tag, h as Right, hn as InstanceType, ht as HasService, i as DoGenerator, in as TaskSuccess, it as Task, j as Some, jn as ValidatedBrandCompanion, jt as Validator, k as Option, kn as UrlString, kt as Validation, l as LeftErrorType, ln as ThrowableType, lt as LayerInput, m as Left, mn as CompanionMethods, mt as ContextServices, n as Do, nn as TaskParams, nt as InterruptedError, o as FailureError, on as isTaggedThrowable, ot as UIO, p as Either, pn as Cond, pt as Context, q as ESMapType, qt as CancellationTokenSource, r as DoAsync, rn as TaskResult, rt as RIO, s as FailureErrorType, sn as NAME, st as Layer, t as $, tn as TaskOutcome, tt as IO, u as NoneError, un as Base, ut as LayerOutput, v as TypeCheckRight, vn as BoundedNumber, vt as Identity, w as FunctypeBase, wn as NonNegativeNumber, wt as TryKind, x as tryCatch, xn as ISO8601Date, xt as Kind, y as isLeft, yn as BoundedString, yt as EitherKind, z as createSerializer, zn as CollectionOps, zt as ErrorWithTaskInfo } from "./index-DBg23xHh.js";
3
+ import { a as isTypeable, c as Pipe, i as TypeableParams, l as Foldable, n as ExtractTag, o as Serializable, r as Typeable, s as SerializationMethods, t as Tuple, u as Type } from "./Tuple-35L0I92q.js";
4
+ export { $, Applicative, Async, AsyncMonad, Base, BoundedNumber, BoundedString, Brand, BrandedBoolean, BrandedBoolean as BrandedBooleanType, BrandedNumber, BrandedNumber as BrandedNumberType, BrandedString, BrandedString as BrandedStringType, CancellationToken, CancellationTokenSource, Collection, CollectionOps, Companion, CompanionMethods, Cond, ContainerOps, Context, Context as ContextType, ContextServices, Do, DoAsync, DoGenerator, DoResult, Doable, ESMap, ESMapType, Either, EitherKind, EmailAddress, EmptyListError, Err, ErrorChainElement, ErrorCode, ErrorFormatterOptions, ErrorMessage, ErrorStatus, ErrorWithTaskInfo, Exit, Exit as ExitType, ExitTag, ExtractBrand, ExtractTag, Extractable, FailureError, FailureErrorType, FieldValidation, Foldable, FoldableUtils, FormValidation, Functor, Functype, FunctypeBase, FunctypeCollection, HKT, HasService, IO, IO as IOType, Task as IOTask, ISO8601Date, Identity, InstanceType, IntegerNumber, InterruptedError, Kind, Layer, Layer as LayerType, LayerError, LayerInput, LayerOutput, Lazy, Lazy as LazyType, LazyList, Left, LeftError, LeftErrorType, List, ListKind, Map, Match, Matchable, MatchableUtils, Monad, NAME, NonEmptyString, NonNegativeNumber, None, NoneError, Ok, Option, OptionConstructor, OptionKind, ParseError, PatternString, Pipe, PositiveInteger, PositiveNumber, Promisable, RIO, Ref, Ref as RefType, Right, SafeTraversable, Serializable, SerializationMethods, SerializationResult, Set, Some, Stack, Sync, Tag, Tag as TagType, TagService, TaggedThrowable, Task$1 as Task, TaskErrorInfo, TaskFailure, TaskMetadata, TaskOutcome, TaskParams, TaskResult, TaskSuccess, TestClock, TestClock as TestClockType, TestClockTag, TestContext, TestContext as TestContextType, TestEither, Throwable, ThrowableType, TimeoutError, Traversable, Try, TryKind, Tuple, Type, TypeCheckLeft, TypeCheckRight, TypeNames, Typeable, TypeableParams, TypedError, TypedErrorContext, UIO, UUID, UniversalContainer, UntypedMatch, Unwrap, UrlString, ValidatedBrand, ValidatedBrand as ValidatedBrandType, ValidatedBrandCompanion, Validation, ValidationRule, Validator, Valuable, ValuableParams, createBrander, createCancellationTokenSource, createCustomSerializer, createErrorSerializer, createSerializationCompanion, createSerializer, formatError, formatStackTrace, fromBinary, fromJSON, fromYAML, hasBrand, isCompanion, isDoCapable, isExtractable, isLeft, isRight, isTaggedThrowable, isTypeable, safeStringify, tryCatch, tryCatchAsync, unwrap, unwrapBrand };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"./Brand-Cfr5zy8F.js";import{$ as s,A as c,At as l,B as u,C as d,Ct as f,D as p,Dt as m,E as h,Et as g,F as _,G as v,H as y,I as b,J as x,K as S,L as C,M as w,Mt as T,N as E,Nt as D,O,Ot as k,P as A,Pt as j,Q as M,R as N,S as P,St as F,T as I,Tt as L,U as R,V as z,W as B,X as V,Y as H,Z as U,_ as W,_t as G,a as K,at as q,b as J,bt as Y,c as X,ct as Z,d as Q,dt as $,et as ee,f as te,ft as ne,g as re,gt as ie,h as ae,ht as oe,i as se,it as ce,j as le,jt as ue,k as de,kt as fe,l as pe,lt as me,m as he,mt as ge,n as _e,nt as ve,o as ye,ot as be,p as xe,pt as Se,q as Ce,r as we,rt as Te,s as Ee,st as De,t as Oe,tt as ke,u as Ae,ut as je,v as Me,vt as Ne,w as Pe,wt as Fe,x as Ie,xt as Le,y as Re,yt as ze,z as Be}from"./src-BuPnddUO.js";import{n as Ve,t as He}from"./Tuple-CUljR3nx.js";export{p as $,v as Base,H as BoundedNumber,V as BoundedString,o as Brand,n as BrandedBoolean,i as BrandedNumber,t as BrandedString,Ve as Companion,Ce as Cond,re as Context,O as Do,de as DoAsync,K as ESMap,Z as Either,U as EmailAddress,c as EmptyListError,b as Err,ae as Exit,z as FPromise,y as FPromiseCompanion,le as FailureError,Re as FoldableUtils,Me as HKT,te as IO,M as ISO8601Date,W as Identity,s as IntegerNumber,xe as InterruptedError,Q as Layer,ye as Lazy,Le as LazyList,me as Left,w as LeftError,G as List,se as Map,S as Match,we as MatchableUtils,R as NAME,ee as NonEmptyString,ke as NonNegativeNumber,Fe as None,E as NoneError,C as Ok,L as Option,g as OptionConstructor,j as ParseError,ve as PatternString,Te as PositiveInteger,ce as PositiveNumber,F as Ref,je as Right,f as Set,m as Some,_e as Stack,Ae as Tag,N as Task,Ee as TestClock,X as TestClockTag,pe as TestContext,B as Throwable,he as TimeoutError,Y as Try,He as Tuple,$ as TypeCheckLeft,ne as TypeCheckRight,Ne as Typeable,P as TypedError,q as UUID,be as UrlString,De as ValidatedBrand,Ie as Validation,Oe as Valuable,e as createBrander,Be as createCancellationTokenSource,k as createCustomSerializer,d as createErrorSerializer,fe as createSerializationCompanion,l as createSerializer,Pe as formatError,I as formatStackTrace,ue as fromBinary,T as fromJSON,D as fromYAML,r as hasBrand,x as isCompanion,A as isDoCapable,J as isExtractable,Se as isLeft,ge as isRight,u as isTaggedThrowable,ze as isTypeable,h as safeStringify,oe as tryCatch,ie as tryCatchAsync,_ as unwrap,a as unwrapBrand};
1
+ import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"./Brand-DxglW-qB.js";import{$ as s,A as c,At as l,B as u,C as d,Ct as f,D as p,Dt as m,E as h,Et as g,F as _,G as v,H as y,I as b,J as x,K as S,L as C,M as w,Mt as T,N as E,O as D,Ot as O,P as k,Q as A,R as j,S as M,St as N,T as P,Tt as F,U as I,V as L,W as R,X as z,Y as B,Z as V,_ as H,_t as U,a as W,at as G,b as K,bt as q,c as J,ct as Y,d as X,dt as Z,et as Q,f as $,ft as ee,g as te,gt as ne,h as re,ht as ie,i as ae,it as oe,j as se,jt as ce,k as le,kt as ue,l as de,lt as fe,m as pe,mt as me,n as he,nt as ge,o as _e,ot as ve,p as ye,pt as be,q as xe,r as Se,rt as Ce,s as we,st as Te,t as Ee,tt as De,u as Oe,ut as ke,v as Ae,vt as je,w as Me,wt as Ne,x as Pe,xt as Fe,y as Ie,yt as Le,z as Re}from"./src-Bl2PmAVK.js";import{n as ze,t as Be}from"./Tuple-BQLc_Ion.js";export{p as $,I as Base,xe as BoundedNumber,x as BoundedString,o as Brand,n as BrandedBoolean,i as BrandedNumber,t as BrandedString,ze as Companion,v as Cond,te as Context,D as Do,le as DoAsync,W as ESMap,ve as Either,B as EmailAddress,c as EmptyListError,b as Err,re as Exit,se as FailureError,Ie as FoldableUtils,Ae as HKT,$ as IO,z as ISO8601Date,H as Identity,V as IntegerNumber,ye as InterruptedError,X as Layer,_e as Lazy,Le as LazyList,Te as Left,w as LeftError,ie as List,ae as Map,R as Match,Se as MatchableUtils,L as NAME,A as NonEmptyString,s as NonNegativeNumber,N as None,E as NoneError,C as Ok,f as Option,Ne as OptionConstructor,T as ParseError,Q as PatternString,De as PositiveInteger,ge as PositiveNumber,q as Ref,Y as Right,Fe as Set,F as Some,he as Stack,Oe as Tag,j as Task,we as TestClock,J as TestClockTag,de as TestContext,y as Throwable,pe as TimeoutError,je as Try,Be as Tuple,fe as TypeCheckLeft,ke as TypeCheckRight,ne as Typeable,M as TypedError,Ce as UUID,oe as UrlString,G as ValidatedBrand,Pe as Validation,Ee as Valuable,e as createBrander,Re as createCancellationTokenSource,g as createCustomSerializer,d as createErrorSerializer,m as createSerializationCompanion,O as createSerializer,Me as formatError,P as formatStackTrace,ue as fromBinary,l as fromJSON,ce as fromYAML,r as hasBrand,S as isCompanion,k as isDoCapable,K as isExtractable,Z as isLeft,ee as isRight,u as isTaggedThrowable,U as isTypeable,h as safeStringify,be as tryCatch,me as tryCatchAsync,_ as unwrap,a as unwrapBrand};
@@ -1,2 +1,2 @@
1
- import { D as List } from "../index-DKAUrDCz.js";
1
+ import { D as List } from "../index-DBg23xHh.js";
2
2
  export { List };
@@ -1 +1 @@
1
- import{_t as e}from"../src-BuPnddUO.js";export{e as List};
1
+ import{ht as e}from"../src-Bl2PmAVK.js";export{e as List};
@@ -1,2 +1,2 @@
1
- import { J as Map, Y as SafeTraversable } from "../index-DKAUrDCz.js";
1
+ import { J as Map, Y as SafeTraversable } from "../index-DBg23xHh.js";
2
2
  export { Map, SafeTraversable };
package/dist/map/index.js CHANGED
@@ -1 +1 @@
1
- import{i as e}from"../src-BuPnddUO.js";export{e as Map};
1
+ import{i as e}from"../src-Bl2PmAVK.js";export{e as Map};
@@ -1,2 +1,2 @@
1
- import { A as OptionConstructor, O as None, j as Some, k as Option } from "../index-DKAUrDCz.js";
1
+ import { A as OptionConstructor, O as None, j as Some, k as Option } from "../index-DBg23xHh.js";
2
2
  export { None, Option, OptionConstructor, Some };
@@ -1 +1 @@
1
- import{Dt as e,Et as t,Tt as n,wt as r}from"../src-BuPnddUO.js";export{r as None,n as Option,t as OptionConstructor,e as Some};
1
+ import{Ct as e,St as t,Tt as n,wt as r}from"../src-Bl2PmAVK.js";export{t as None,e as Option,r as OptionConstructor,n as Some};
@@ -1,2 +1,2 @@
1
- import { F as Set } from "../index-DKAUrDCz.js";
1
+ import { F as Set } from "../index-DBg23xHh.js";
2
2
  export { Set };
package/dist/set/index.js CHANGED
@@ -1 +1 @@
1
- import{Ct as e}from"../src-BuPnddUO.js";export{e as Set};
1
+ import{xt as e}from"../src-Bl2PmAVK.js";export{e as Set};