@kellanjs/actioncraft 0.0.1 → 0.0.2
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/dist/types/config.d.ts +2 -2
- package/package.json +1 -1
package/dist/types/config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StandardSchemaV1 } from "../standard-schema.js";
|
|
2
2
|
import type { InferCraftedActionResult } from "./actions.js";
|
|
3
|
-
import type { AllPossibleErrors,
|
|
3
|
+
import type { AllPossibleErrors, ErrorDefinition, UserDefinedError } from "./errors.js";
|
|
4
4
|
import type { CallbackMetadata } from "./shared.js";
|
|
5
5
|
/**
|
|
6
6
|
* Custom logging interface for ActionCraft.
|
|
@@ -35,7 +35,7 @@ export type CrafterConfig = {
|
|
|
35
35
|
* Custom handler for unexpected thrown errors.
|
|
36
36
|
* Transforms exceptions into structured error objects.
|
|
37
37
|
*/
|
|
38
|
-
handleThrownError?: (error: unknown) =>
|
|
38
|
+
handleThrownError?: (error: unknown) => UserDefinedError;
|
|
39
39
|
/**
|
|
40
40
|
* Logger for ActionCraft internal events.
|
|
41
41
|
*/
|