@resultsafe/core-fp-result 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -0
- package/cjs/constructors/Err.js.map +1 -1
- package/cjs/constructors/Ok.js.map +1 -1
- package/cjs/guards/isErr.js.map +1 -1
- package/cjs/guards/isErrAnd.js.map +1 -1
- package/cjs/guards/isOk.js.map +1 -1
- package/cjs/guards/isOkAnd.js.map +1 -1
- package/cjs/methods/andThen.js.map +1 -1
- package/cjs/methods/err.js.map +1 -1
- package/cjs/methods/expect.js.map +1 -1
- package/cjs/methods/expectErr.js.map +1 -1
- package/cjs/methods/flatten.js.map +1 -1
- package/cjs/methods/inspect.js.map +1 -1
- package/cjs/methods/inspectErr.js.map +1 -1
- package/cjs/methods/map.js.map +1 -1
- package/cjs/methods/mapErr.js.map +1 -1
- package/cjs/methods/match.js.map +1 -1
- package/cjs/methods/ok.js.map +1 -1
- package/cjs/methods/orElse.js.map +1 -1
- package/cjs/methods/tap.js.map +1 -1
- package/cjs/methods/tapErr.js.map +1 -1
- package/cjs/methods/transpose.js.map +1 -1
- package/cjs/methods/unwrap.js.map +1 -1
- package/cjs/methods/unwrapErr.js.map +1 -1
- package/cjs/methods/unwrapOr.js.map +1 -1
- package/cjs/methods/unwrapOrElse.js.map +1 -1
- package/cjs/refiners/isTypedVariant.js.map +1 -1
- package/cjs/refiners/isTypedVariantOf.js.map +1 -1
- package/cjs/refiners/matchVariant.js.map +1 -1
- package/cjs/refiners/matchVariantStrict.js.map +1 -1
- package/cjs/refiners/refineAsyncResult.js.map +1 -1
- package/cjs/refiners/refineAsyncResultU.js.map +1 -1
- package/cjs/refiners/refineResult.js.map +1 -1
- package/cjs/refiners/refineResultU.js.map +1 -1
- package/cjs/refiners/refineVariantMap.js.map +1 -1
- package/cjs/refiners/utils/getPayloadKeys.js.map +1 -1
- package/esm/constructors/Err.js.map +1 -1
- package/esm/constructors/Ok.js.map +1 -1
- package/esm/guards/isErr.js.map +1 -1
- package/esm/guards/isErrAnd.js.map +1 -1
- package/esm/guards/isOk.js.map +1 -1
- package/esm/guards/isOkAnd.js.map +1 -1
- package/esm/methods/andThen.js.map +1 -1
- package/esm/methods/err.js.map +1 -1
- package/esm/methods/expect.js.map +1 -1
- package/esm/methods/expectErr.js.map +1 -1
- package/esm/methods/flatten.js.map +1 -1
- package/esm/methods/inspect.js.map +1 -1
- package/esm/methods/inspectErr.js.map +1 -1
- package/esm/methods/map.js.map +1 -1
- package/esm/methods/mapErr.js.map +1 -1
- package/esm/methods/match.js.map +1 -1
- package/esm/methods/ok.js.map +1 -1
- package/esm/methods/orElse.js.map +1 -1
- package/esm/methods/tap.js.map +1 -1
- package/esm/methods/tapErr.js.map +1 -1
- package/esm/methods/transpose.js.map +1 -1
- package/esm/methods/unwrap.js.map +1 -1
- package/esm/methods/unwrapErr.js.map +1 -1
- package/esm/methods/unwrapOr.js.map +1 -1
- package/esm/methods/unwrapOrElse.js.map +1 -1
- package/esm/refiners/isTypedVariant.js.map +1 -1
- package/esm/refiners/isTypedVariantOf.js.map +1 -1
- package/esm/refiners/matchVariant.js.map +1 -1
- package/esm/refiners/matchVariantStrict.js.map +1 -1
- package/esm/refiners/refineAsyncResult.js.map +1 -1
- package/esm/refiners/refineAsyncResultU.js.map +1 -1
- package/esm/refiners/refineResult.js.map +1 -1
- package/esm/refiners/refineResultU.js.map +1 -1
- package/esm/refiners/refineVariantMap.js.map +1 -1
- package/esm/refiners/utils/getPayloadKeys.js.map +1 -1
- package/package.json +1 -1
- package/types/constructors/Err.d.ts +4 -4
- package/types/constructors/Err.d.ts.map +1 -1
- package/types/constructors/Ok.d.ts +4 -4
- package/types/constructors/Ok.d.ts.map +1 -1
- package/types/guards/isErr.d.ts +5 -5
- package/types/guards/isErr.d.ts.map +1 -1
- package/types/guards/isErrAnd.d.ts +6 -6
- package/types/guards/isErrAnd.d.ts.map +1 -1
- package/types/guards/isOk.d.ts +5 -5
- package/types/guards/isOk.d.ts.map +1 -1
- package/types/guards/isOkAnd.d.ts +6 -6
- package/types/guards/isOkAnd.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/methods/andThen.d.ts +7 -7
- package/types/methods/andThen.d.ts.map +1 -1
- package/types/methods/err.d.ts +7 -8
- package/types/methods/err.d.ts.map +1 -1
- package/types/methods/expect.d.ts +9 -9
- package/types/methods/expect.d.ts.map +1 -1
- package/types/methods/expectErr.d.ts +9 -9
- package/types/methods/expectErr.d.ts.map +1 -1
- package/types/methods/flatten.d.ts +3 -3
- package/types/methods/flatten.d.ts.map +1 -1
- package/types/methods/inspect.d.ts +8 -8
- package/types/methods/inspect.d.ts.map +1 -1
- package/types/methods/inspectErr.d.ts +8 -8
- package/types/methods/inspectErr.d.ts.map +1 -1
- package/types/methods/map.d.ts +9 -9
- package/types/methods/map.d.ts.map +1 -1
- package/types/methods/mapErr.d.ts +8 -8
- package/types/methods/mapErr.d.ts.map +1 -1
- package/types/methods/match.d.ts +8 -8
- package/types/methods/match.d.ts.map +1 -1
- package/types/methods/ok.d.ts +7 -8
- package/types/methods/ok.d.ts.map +1 -1
- package/types/methods/orElse.d.ts +9 -9
- package/types/methods/orElse.d.ts.map +1 -1
- package/types/methods/tap.d.ts +7 -7
- package/types/methods/tap.d.ts.map +1 -1
- package/types/methods/tapErr.d.ts +7 -7
- package/types/methods/tapErr.d.ts.map +1 -1
- package/types/methods/transpose.d.ts +5 -6
- package/types/methods/transpose.d.ts.map +1 -1
- package/types/methods/unwrap.d.ts +8 -8
- package/types/methods/unwrap.d.ts.map +1 -1
- package/types/methods/unwrapErr.d.ts +8 -8
- package/types/methods/unwrapErr.d.ts.map +1 -1
- package/types/methods/unwrapOr.d.ts +8 -8
- package/types/methods/unwrapOr.d.ts.map +1 -1
- package/types/methods/unwrapOrElse.d.ts +8 -8
- package/types/methods/unwrapOrElse.d.ts.map +1 -1
- package/types/refiners/isTypedVariant.d.ts +3 -3
- package/types/refiners/isTypedVariantOf.d.ts +3 -3
- package/types/refiners/matchVariant.d.ts +5 -5
- package/types/refiners/matchVariantStrict.d.ts +6 -6
- package/types/refiners/refineAsyncResult.d.ts +17 -15
- package/types/refiners/refineAsyncResult.d.ts.map +1 -1
- package/types/refiners/refineAsyncResultU.d.ts +13 -11
- package/types/refiners/refineAsyncResultU.d.ts.map +1 -1
- package/types/refiners/refineResult.d.ts +18 -16
- package/types/refiners/refineResult.d.ts.map +1 -1
- package/types/refiners/refineResultU.d.ts +13 -11
- package/types/refiners/refineResultU.d.ts.map +1 -1
- package/types/refiners/refineVariantMap.d.ts +8 -8
- package/types/refiners/refineVariantMap.d.ts.map +1 -1
- package/types/refiners/types/SyncRefinedResult.d.ts +3 -1
- package/types/refiners/types/SyncRefinedResult.d.ts.map +1 -1
- package/types/refiners/types/SyncRefinedResultUnion.d.ts +1 -1
- package/types/refiners/types/SyncRefinedResultUnion.d.ts.map +1 -1
- package/types/refiners/types/SyncValidatorMap.d.ts +3 -1
- package/types/refiners/types/SyncValidatorMap.d.ts.map +1 -1
- package/types/refiners/types/UniversalAsyncRefinedResult.d.ts +1 -1
- package/types/refiners/types/UniversalAsyncRefinedResult.d.ts.map +1 -1
- package/types/refiners/types/UniversalRefinedResult.d.ts +1 -1
- package/types/refiners/types/UniversalRefinedResult.d.ts.map +1 -1
- package/types/refiners/utils/getPayloadKeys.d.ts +6 -5
- package/types/refiners/utils/getPayloadKeys.d.ts.map +1 -1
- package/types/types/core/index.d.ts +3 -0
- package/types/types/core/index.d.ts.map +1 -0
- package/types/types/index.d.ts +1 -2
- package/types/types/index.d.ts.map +1 -1
- package/umd/resultsafe-monorepo-core-fp-result.umd.js.map +1 -1
- package/types/shared-types.d.ts +0 -164
- package/types/shared-types.d.ts.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { type Result } from '../
|
|
1
|
+
import { type Result } from '../types/core/index.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Returns the success value or computes a fallback from the error.
|
|
4
4
|
*
|
|
5
|
-
* @typeParam T -
|
|
6
|
-
* @typeParam E -
|
|
7
|
-
* @param result -
|
|
8
|
-
* @param fn -
|
|
9
|
-
* @returns
|
|
5
|
+
* @typeParam T - The success value type.
|
|
6
|
+
* @typeParam E - The error value type.
|
|
7
|
+
* @param result - The source `Result`.
|
|
8
|
+
* @param fn - The fallback provider function for `Err`.
|
|
9
|
+
* @returns The success payload or the computed fallback.
|
|
10
10
|
* @since 0.1.0
|
|
11
|
-
* @see {@link unwrapOr} -
|
|
11
|
+
* @see {@link unwrapOr} - Uses an eager fallback value.
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
14
|
* import { Err, unwrapOrElse } from '@resultsafe/core-fp-result';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unwrapOrElse.d.ts","sourceRoot":"","sources":["../../../src/methods/unwrapOrElse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"unwrapOrElse.d.ts","sourceRoot":"","sources":["../../../src/methods/unwrapOrElse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,EAAE,CAAC,EAC/B,QAAQ,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EACpB,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,KAClB,CAMF,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Creates a runtime type guard for a discriminated union variant.
|
|
3
3
|
*
|
|
4
4
|
* @typeParam K - The discriminant literal type.
|
|
5
|
-
* @param variant -
|
|
5
|
+
* @param variant - The discriminant value to match.
|
|
6
6
|
* @returns A predicate that checks `{ type: K }` shape.
|
|
7
7
|
* @since 0.1.0
|
|
8
|
-
* @see {@link isTypedVariantOf} -
|
|
8
|
+
* @see {@link isTypedVariantOf} - Extends check with payload keys.
|
|
9
9
|
* @example
|
|
10
10
|
* ```ts
|
|
11
11
|
* import { isTypedVariant } from '@resultsafe/core-fp-result';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Creates a runtime type guard for a variant with additional payload keys.
|
|
3
3
|
*
|
|
4
4
|
* @typeParam K - The discriminant literal type.
|
|
5
5
|
* @typeParam T - The required payload record shape.
|
|
6
|
-
* @param variant -
|
|
6
|
+
* @param variant - The discriminant value to match.
|
|
7
7
|
* @returns A predicate that checks variant and payload key presence.
|
|
8
8
|
* @since 0.1.0
|
|
9
|
-
* @see {@link isTypedVariant} -
|
|
9
|
+
* @see {@link isTypedVariant} - Checks only the discriminant.
|
|
10
10
|
* @example
|
|
11
11
|
* ```ts
|
|
12
12
|
* import { isTypedVariantOf } from '@resultsafe/core-fp-result';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Matcher, VariantOf } from './types/index.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Creates a chained matcher for a discriminated union value.
|
|
4
4
|
*
|
|
5
|
-
* @typeParam T -
|
|
6
|
-
* @param value -
|
|
7
|
-
* @returns
|
|
5
|
+
* @typeParam T - The discriminated union type.
|
|
6
|
+
* @param value - The union value to match.
|
|
7
|
+
* @returns A fluent matcher with `with` and `otherwise` branches.
|
|
8
8
|
* @since 0.1.0
|
|
9
|
-
* @see {@link matchVariantStrict} -
|
|
9
|
+
* @see {@link matchVariantStrict} - Requires exhaustive matching at runtime.
|
|
10
10
|
* @example
|
|
11
11
|
* ```ts
|
|
12
12
|
* import { matchVariant } from '@resultsafe/core-fp-result';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { MatchBuilder, VariantOf } from './types/index.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Creates a strict matcher that throws an exception for unhandled variants.
|
|
4
4
|
*
|
|
5
|
-
* @typeParam T -
|
|
6
|
-
* @param value -
|
|
7
|
-
* @returns
|
|
8
|
-
* @throws Error -
|
|
5
|
+
* @typeParam T - The discriminated union type.
|
|
6
|
+
* @param value - The union value to match.
|
|
7
|
+
* @returns A strict match builder requiring explicit handlers.
|
|
8
|
+
* @throws Error - Throws an exception if no registered handler matches `value.type`.
|
|
9
9
|
* @since 0.1.0
|
|
10
|
-
* @see {@link matchVariant} -
|
|
10
|
+
* @see {@link matchVariant} - Uses a fallback branch instead of throwing.
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
13
|
* import { matchVariantStrict } from '@resultsafe/core-fp-result';
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import type { AsyncValidatorFn
|
|
1
|
+
import type { AsyncValidatorFn } from '../types/refiners/AsyncValidatorFn.js';
|
|
2
|
+
import type { PayloadKeys } from '../types/refiners/PayloadKeys.js';
|
|
3
|
+
import type { VariantConfig } from '../types/refiners/VariantConfig.js';
|
|
2
4
|
import type { UniversalAsyncRefinedResult } from './types/index.js';
|
|
3
5
|
/**
|
|
4
|
-
*
|
|
6
|
+
* Creates an async variant refiner with async payload validators.
|
|
5
7
|
*
|
|
6
|
-
* @typeParam TMap -
|
|
7
|
-
* @param variantMap -
|
|
8
|
+
* @typeParam TMap - The variant configuration map type.
|
|
9
|
+
* @param variantMap - The map describing valid variants and payload fields.
|
|
8
10
|
* @returns A curried async refiner factory bound to `variantMap`.
|
|
9
11
|
* @since 0.1.0
|
|
10
|
-
* @see {@link refineAsyncResultU} -
|
|
12
|
+
* @see {@link refineAsyncResultU} - Direct (non-curried) helper variant.
|
|
11
13
|
* @example
|
|
12
14
|
* ```ts
|
|
13
15
|
* import { refineAsyncResult } from '@resultsafe/core-fp-result';
|
|
@@ -23,19 +25,19 @@ import type { UniversalAsyncRefinedResult } from './types/index.js';
|
|
|
23
25
|
*/
|
|
24
26
|
export declare const refineAsyncResult: <TMap extends Record<string, VariantConfig>>(variantMap: TMap) => <K extends keyof TMap & string>(variant: K) => <TValidators extends Partial<Record<PayloadKeys<TMap[K]>, AsyncValidatorFn>>>(validators: TValidators) => (value: unknown) => Promise<UniversalAsyncRefinedResult<K, TMap, TValidators> | null>;
|
|
25
27
|
/**
|
|
26
|
-
*
|
|
28
|
+
* Refines a value asynchronously in non-curried call style.
|
|
27
29
|
*
|
|
28
|
-
* @typeParam TMap -
|
|
29
|
-
* @typeParam K -
|
|
30
|
-
* @typeParam TValidators -
|
|
31
|
-
* @param value -
|
|
32
|
-
* @param variant -
|
|
33
|
-
* @param variantMap -
|
|
34
|
-
* @param validators -
|
|
35
|
-
* @returns
|
|
30
|
+
* @typeParam TMap - The variant configuration map type.
|
|
31
|
+
* @typeParam K - The target variant key.
|
|
32
|
+
* @typeParam TValidators - The async validator map for payload fields.
|
|
33
|
+
* @param value - The value to validate and refine.
|
|
34
|
+
* @param variant - The target variant key.
|
|
35
|
+
* @param variantMap - The variant configuration map.
|
|
36
|
+
* @param validators - The async payload validators.
|
|
37
|
+
* @returns A promise resolving to the refined value or `null`.
|
|
36
38
|
* @remarks
|
|
37
39
|
* This export is kept for compatibility. Prefer {@link refineAsyncResultU}
|
|
38
|
-
* from `refineAsyncResultU.ts`
|
|
40
|
+
* from `refineAsyncResultU.ts` as the canonical non-curried entry point.
|
|
39
41
|
* @since 0.1.0
|
|
40
42
|
* @example
|
|
41
43
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refineAsyncResult.d.ts","sourceRoot":"","sources":["../../../src/refiners/refineAsyncResult.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"refineAsyncResult.d.ts","sourceRoot":"","sources":["../../../src/refiners/refineAsyncResult.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAWpE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,iBAAiB,GAC3B,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,YAAY,IAAI,MAC5D,CAAC,SAAS,MAAM,IAAI,GAAG,MAAM,EAAE,SAAS,CAAC,MACzC,WAAW,SAAS,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,EAC1E,YAAY,WAAW,MAGvB,OAAO,OAAO,KACb,OAAO,CAAC,2BAA2B,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,GAAG,IAAI,CAqBlE,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,kBAAkB,GAC7B,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC1C,CAAC,SAAS,MAAM,IAAI,GAAG,MAAM,EAC7B,WAAW,SAAS,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,EAE3E,OAAO,OAAO,EACd,SAAS,CAAC,EACV,YAAY,IAAI,EAChB,YAAY,WAAW,KACtB,OAAO,CAAC,2BAA2B,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,GAAG,IAAI,CACR,CAAC"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import type { AsyncValidatorFn
|
|
1
|
+
import type { AsyncValidatorFn } from '../types/refiners/AsyncValidatorFn.js';
|
|
2
|
+
import type { PayloadKeys } from '../types/refiners/PayloadKeys.js';
|
|
3
|
+
import type { VariantConfig } from '../types/refiners/VariantConfig.js';
|
|
2
4
|
import type { UniversalAsyncRefinedResult } from './types/index.js';
|
|
3
5
|
/**
|
|
4
|
-
*
|
|
6
|
+
* Refines a value asynchronously in non-curried call style.
|
|
5
7
|
*
|
|
6
|
-
* @typeParam TMap -
|
|
7
|
-
* @typeParam K -
|
|
8
|
-
* @typeParam TValidators -
|
|
9
|
-
* @param value -
|
|
10
|
-
* @param variant -
|
|
11
|
-
* @param variantMap -
|
|
12
|
-
* @param validators -
|
|
13
|
-
* @returns
|
|
8
|
+
* @typeParam TMap - The variant configuration map type.
|
|
9
|
+
* @typeParam K - The target variant key.
|
|
10
|
+
* @typeParam TValidators - The async validator map for payload fields.
|
|
11
|
+
* @param value - The value to validate and refine.
|
|
12
|
+
* @param variant - The target variant key.
|
|
13
|
+
* @param variantMap - The variant configuration map.
|
|
14
|
+
* @param validators - The async payload validators.
|
|
15
|
+
* @returns A promise resolving to the refined value or `null`.
|
|
14
16
|
* @since 0.1.0
|
|
15
|
-
* @see {@link refineAsyncResult} - Curry
|
|
17
|
+
* @see {@link refineAsyncResult} - Curry-style async refiner constructor.
|
|
16
18
|
* @example
|
|
17
19
|
* ```ts
|
|
18
20
|
* import { refineAsyncResultU } from '@resultsafe/core-fp-result';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refineAsyncResultU.d.ts","sourceRoot":"","sources":["../../../src/refiners/refineAsyncResultU.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"refineAsyncResultU.d.ts","sourceRoot":"","sources":["../../../src/refiners/refineAsyncResultU.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAWpE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,kBAAkB,GAC7B,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC1C,CAAC,SAAS,MAAM,IAAI,GAAG,MAAM,EAC7B,WAAW,SAAS,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,EAE3E,OAAO,OAAO,EACd,SAAS,CAAC,EACV,YAAY,IAAI,EAChB,YAAY,WAAW,KACtB,OAAO,CAAC,2BAA2B,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,GAAG,IAAI,CA4BlE,CAAC"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import type { PayloadKeys
|
|
1
|
+
import type { PayloadKeys } from '../types/refiners/PayloadKeys.js';
|
|
2
|
+
import type { ValidatorFn } from '../types/refiners/ValidatorFn.js';
|
|
3
|
+
import type { VariantConfig } from '../types/refiners/VariantConfig.js';
|
|
2
4
|
import type { UniversalRefinedResult } from './types/index.js';
|
|
3
5
|
/**
|
|
4
|
-
*
|
|
6
|
+
* Creates a sync variant refiner with payload validators.
|
|
5
7
|
*
|
|
6
|
-
* @typeParam TMap -
|
|
7
|
-
* @param variantMap -
|
|
8
|
+
* @typeParam TMap - The variant configuration map type.
|
|
9
|
+
* @param variantMap - The map describing valid variants and payload fields.
|
|
8
10
|
* @returns A curried refiner factory bound to `variantMap`.
|
|
9
11
|
* @since 0.1.0
|
|
10
|
-
* @see {@link refineResultU} -
|
|
12
|
+
* @see {@link refineResultU} - Direct (non-curried) helper variant.
|
|
11
13
|
* @example
|
|
12
14
|
* ```ts
|
|
13
15
|
* import { refineResult } from '@resultsafe/core-fp-result';
|
|
@@ -23,19 +25,19 @@ import type { UniversalRefinedResult } from './types/index.js';
|
|
|
23
25
|
*/
|
|
24
26
|
export declare const refineResult: <TMap extends Record<string, VariantConfig>>(variantMap: TMap) => <K extends keyof TMap & string>(variant: K) => <TValidators extends Partial<Record<PayloadKeys<TMap[K]>, ValidatorFn>>>(validators: TValidators) => (value: unknown) => UniversalRefinedResult<K, TMap, TValidators> | null;
|
|
25
27
|
/**
|
|
26
|
-
*
|
|
28
|
+
* Refines a value by variant map in non-curried call style.
|
|
27
29
|
*
|
|
28
|
-
* @typeParam TMap -
|
|
29
|
-
* @typeParam K -
|
|
30
|
-
* @typeParam TValidators -
|
|
31
|
-
* @param value -
|
|
32
|
-
* @param variant -
|
|
33
|
-
* @param variantMap -
|
|
34
|
-
* @param validators -
|
|
35
|
-
* @returns
|
|
30
|
+
* @typeParam TMap - The variant configuration map type.
|
|
31
|
+
* @typeParam K - The target variant key.
|
|
32
|
+
* @typeParam TValidators - The validator map for payload fields.
|
|
33
|
+
* @param value - The value to validate and refine.
|
|
34
|
+
* @param variant - The target variant key.
|
|
35
|
+
* @param variantMap - The variant configuration map.
|
|
36
|
+
* @param validators - The payload validators for the target variant.
|
|
37
|
+
* @returns The refined value or `null`.
|
|
36
38
|
* @remarks
|
|
37
|
-
*
|
|
38
|
-
* `refineResultU.ts`
|
|
39
|
+
* This export is kept for compatibility. Prefer {@link refineResultU} from
|
|
40
|
+
* `refineResultU.ts` as the canonical non-curried entry point.
|
|
39
41
|
* @since 0.1.0
|
|
40
42
|
* @example
|
|
41
43
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refineResult.d.ts","sourceRoot":"","sources":["../../../src/refiners/refineResult.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"refineResult.d.ts","sourceRoot":"","sources":["../../../src/refiners/refineResult.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG/D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,GACtB,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,YAAY,IAAI,MAC5D,CAAC,SAAS,MAAM,IAAI,GAAG,MAAM,EAAE,SAAS,CAAC,MACzC,WAAW,SAAS,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,EACrE,YAAY,WAAW,MAExB,OAAO,OAAO,KAAG,sBAAsB,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,GAAG,IAoBhE,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,aAAa,GACxB,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC1C,CAAC,SAAS,MAAM,IAAI,GAAG,MAAM,EAC7B,WAAW,SAAS,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,EAEtE,OAAO,OAAO,EACd,SAAS,CAAC,EACV,YAAY,IAAI,EAChB,YAAY,WAAW,KACtB,sBAAsB,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,GAAG,IACI,CAAC"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import type { PayloadKeys
|
|
1
|
+
import type { PayloadKeys } from '../types/refiners/PayloadKeys.js';
|
|
2
|
+
import type { ValidatorFn } from '../types/refiners/ValidatorFn.js';
|
|
3
|
+
import type { VariantConfig } from '../types/refiners/VariantConfig.js';
|
|
2
4
|
import type { SyncRefinedResult } from './types/index.js';
|
|
3
5
|
/**
|
|
4
|
-
*
|
|
6
|
+
* Refines a value by variant map in non-curried call style.
|
|
5
7
|
*
|
|
6
|
-
* @typeParam TMap -
|
|
7
|
-
* @typeParam K -
|
|
8
|
-
* @typeParam TValidators -
|
|
9
|
-
* @param value -
|
|
10
|
-
* @param variant -
|
|
11
|
-
* @param variantMap -
|
|
12
|
-
* @param validators -
|
|
13
|
-
* @returns
|
|
8
|
+
* @typeParam TMap - The variant configuration map type.
|
|
9
|
+
* @typeParam K - The target variant key.
|
|
10
|
+
* @typeParam TValidators - The validator map for payload fields.
|
|
11
|
+
* @param value - The value to validate and refine.
|
|
12
|
+
* @param variant - The target variant key.
|
|
13
|
+
* @param variantMap - The variant configuration map.
|
|
14
|
+
* @param validators - The payload validators for the target variant.
|
|
15
|
+
* @returns The refined value or `null`.
|
|
14
16
|
* @since 0.1.0
|
|
15
|
-
* @see {@link refineResult} - Curry
|
|
17
|
+
* @see {@link refineResult} - Curry-style refiner constructor.
|
|
16
18
|
* @example
|
|
17
19
|
* ```ts
|
|
18
20
|
* import { refineResultU } from '@resultsafe/core-fp-result';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refineResultU.d.ts","sourceRoot":"","sources":["../../../src/refiners/refineResultU.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"refineResultU.d.ts","sourceRoot":"","sources":["../../../src/refiners/refineResultU.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,aAAa,GACxB,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC1C,CAAC,SAAS,MAAM,IAAI,GAAG,MAAM,EAC7B,WAAW,SAAS,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,EAEtE,OAAO,OAAO,EACd,SAAS,CAAC,EACV,YAAY,IAAI,EAChB,YAAY,WAAW,KACtB,iBAAiB,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,GAAG,IACS,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { VariantConfig } from '../
|
|
1
|
+
import type { VariantConfig } from '../types/refiners/VariantConfig.js';
|
|
2
2
|
import type { SyncRefinedResultUnion } from './types/SyncRefinedResultUnion.js';
|
|
3
3
|
import type { SyncValidatorMap } from './types/SyncValidatorMap.js';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Refines a discriminated union value by a full variant map.
|
|
6
6
|
*
|
|
7
|
-
* @typeParam TMap -
|
|
8
|
-
* @typeParam TValidators -
|
|
9
|
-
* @param value -
|
|
10
|
-
* @param variantMap -
|
|
11
|
-
* @param validators -
|
|
12
|
-
* @returns
|
|
7
|
+
* @typeParam TMap - The variant configuration map type.
|
|
8
|
+
* @typeParam TValidators - The validator map type by variant.
|
|
9
|
+
* @param value - The value to validate and refine.
|
|
10
|
+
* @param variantMap - The full variant configuration map.
|
|
11
|
+
* @param validators - The validators grouped by variant key.
|
|
12
|
+
* @returns The refined union member or `null`.
|
|
13
13
|
* @since 0.1.0
|
|
14
14
|
* @see {@link refineResult} - Refines one concrete variant key.
|
|
15
15
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refineVariantMap.d.ts","sourceRoot":"","sources":["../../../src/refiners/refineVariantMap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"refineVariantMap.d.ts","sourceRoot":"","sources":["../../../src/refiners/refineVariantMap.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC1C,WAAW,SAAS,gBAAgB,CAAC,IAAI,CAAC,EAE1C,KAAK,EAAE,OAAO,EACd,UAAU,EAAE,IAAI,EAChB,UAAU,EAAE,WAAW,GACtB,sBAAsB,CAAC,IAAI,EAAE,WAAW,CAAC,GAAG,IAAI,CAoClD"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { PayloadKeys
|
|
1
|
+
import type { PayloadKeys } from '../../types/refiners/PayloadKeys.js';
|
|
2
|
+
import type { ValidatorFn } from '../../types/refiners/ValidatorFn.js';
|
|
3
|
+
import type { VariantConfig } from '../../types/refiners/VariantConfig.js';
|
|
2
4
|
/**
|
|
3
5
|
* Describes a synchronously refined specific variant value.
|
|
4
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SyncRefinedResult.d.ts","sourceRoot":"","sources":["../../../../src/refiners/types/SyncRefinedResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"SyncRefinedResult.d.ts","sourceRoot":"","sources":["../../../../src/refiners/types/SyncRefinedResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,iBAAiB,CAC3B,CAAC,SAAS,MAAM,IAAI,GAAG,MAAM,EAC7B,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC1C,YAAY,SAAS,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,IACrE;IACF,IAAI,EAAE,CAAC,CAAC;CACT,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VariantConfig } from '../../
|
|
1
|
+
import type { VariantConfig } from '../../types/refiners/VariantConfig.js';
|
|
2
2
|
import type { SyncRefinedResult } from './SyncRefinedResult.js';
|
|
3
3
|
import type { SyncValidatorMap } from './SyncValidatorMap.js';
|
|
4
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SyncRefinedResultUnion.d.ts","sourceRoot":"","sources":["../../../../src/refiners/types/SyncRefinedResultUnion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SyncRefinedResultUnion.d.ts","sourceRoot":"","sources":["../../../../src/refiners/types/SyncRefinedResultUnion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,sBAAsB,CAChC,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC1C,WAAW,SAAS,gBAAgB,CAAC,IAAI,CAAC,IACxC;KACD,CAAC,IAAI,MAAM,IAAI,GAAG,MAAM,GAAG,iBAAiB,CAC3C,CAAC,EACD,IAAI,EACJ,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAC5B;CACF,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { PayloadKeys
|
|
1
|
+
import type { PayloadKeys } from '../../types/refiners/PayloadKeys.js';
|
|
2
|
+
import type { ValidatorFn } from '../../types/refiners/ValidatorFn.js';
|
|
3
|
+
import type { VariantConfig } from '../../types/refiners/VariantConfig.js';
|
|
2
4
|
/**
|
|
3
5
|
* Describes validator sets grouped by variant key.
|
|
4
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SyncValidatorMap.d.ts","sourceRoot":"","sources":["../../../../src/refiners/types/SyncValidatorMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"SyncValidatorMap.d.ts","sourceRoot":"","sources":["../../../../src/refiners/types/SyncValidatorMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,gBAAgB,CAAC,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,IAAI;KACxE,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;CACvE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UniversalAsyncRefinedResult.d.ts","sourceRoot":"","sources":["../../../../src/refiners/types/UniversalAsyncRefinedResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"UniversalAsyncRefinedResult.d.ts","sourceRoot":"","sources":["../../../../src/refiners/types/UniversalAsyncRefinedResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,MAAM,2BAA2B,CACrC,CAAC,SAAS,MAAM,IAAI,GAAG,MAAM,EAC7B,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC1C,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAC1C;IACF,IAAI,EAAE,CAAC,CAAC;CACT,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UniversalRefinedResult.d.ts","sourceRoot":"","sources":["../../../../src/refiners/types/UniversalRefinedResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"UniversalRefinedResult.d.ts","sourceRoot":"","sources":["../../../../src/refiners/types/UniversalRefinedResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,MAAM,sBAAsB,CAChC,CAAC,SAAS,MAAM,IAAI,GAAG,MAAM,EAC7B,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC1C,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAC1C;IACF,IAAI,EAAE,CAAC,CAAC;CACT,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { PayloadKeys
|
|
1
|
+
import type { PayloadKeys } from '../../types/refiners/PayloadKeys.js';
|
|
2
|
+
import type { VariantConfig } from '../../types/refiners/VariantConfig.js';
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
+
* Normalizes a variant payload configuration into a list of keys.
|
|
4
5
|
*
|
|
5
|
-
* @typeParam C -
|
|
6
|
-
* @param config -
|
|
7
|
-
* @returns
|
|
6
|
+
* @typeParam C - The variant configuration type.
|
|
7
|
+
* @param config - The variant configuration with payload definition.
|
|
8
|
+
* @returns The payload keys as a readonly array.
|
|
8
9
|
* @since 0.1.0
|
|
9
10
|
* @example
|
|
10
11
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPayloadKeys.d.ts","sourceRoot":"","sources":["../../../../src/refiners/utils/getPayloadKeys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getPayloadKeys.d.ts","sourceRoot":"","sources":["../../../../src/refiners/utils/getPayloadKeys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAE3E;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,aAAa,EACpD,QAAQ,CAAC,KACR,SAAS,WAAW,CAAC,CAAC,CAAC,EAIzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/core/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
package/types/types/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export type { Option } from './core/
|
|
2
|
-
export type { Result } from './core/Result.js';
|
|
1
|
+
export type { Option, Result } from './core/index.js';
|
|
3
2
|
export type { AsyncValidatorFn } from './refiners/AsyncValidatorFn.js';
|
|
4
3
|
export type { PayloadKeys } from './refiners/PayloadKeys.js';
|
|
5
4
|
export type { ValidatorFn } from './refiners/ValidatorFn.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGtD,YAAY,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACvE,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC"}
|