@nice-code/action 0.1.2 → 0.1.3

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,7 +1,7 @@
1
1
  import { type INiceErrorDomainProps, type JSONSerializableValue, type NiceErrorDomain } from "@nice-code/error";
2
2
  import type { StandardSchemaV1 } from "@standard-schema/spec";
3
3
  export type TNiceActionJsonSerializableValue = JSONSerializableValue;
4
- export type TTransportedValue<RAW_VAL = never, SERDE_VAL extends TNiceActionJsonSerializableValue = never> = RAW_VAL extends TNiceActionJsonSerializableValue ? [RAW_VAL] | [RAW_VAL, SERDE_VAL] : [RAW_VAL, SERDE_VAL];
4
+ export type TTransportedValue<RAW_VAL, SERDE_VAL extends TNiceActionJsonSerializableValue> = RAW_VAL extends TNiceActionJsonSerializableValue ? [RAW_VAL] | [RAW_VAL, SERDE_VAL] : [RAW_VAL, SERDE_VAL];
5
5
  export type TNiceActionSerializationDefinition<RAW_VAL = any, SERDE_VAL extends TNiceActionJsonSerializableValue = TNiceActionJsonSerializableValue> = {
6
6
  serialize: (value: RAW_VAL) => SERDE_VAL;
7
7
  deserialize: (value: SERDE_VAL) => RAW_VAL;
@@ -25,7 +25,7 @@ export { EErrId_NiceAction, err_nice_action } from "./errors/err_nice_action";
25
25
  export { matchAction } from "./NiceAction/MatchAction/MatchAction";
26
26
  export { NiceAction } from "./NiceAction/NiceAction";
27
27
  export { EActionState } from "./NiceAction/NiceAction.enums";
28
- export type { INiceAction, INiceAction_JsonObject, INiceActionPrimed_JsonObject, TNiceActionResponse_JsonObject, TNiceActionResult as NiceActionResult, } from "./NiceAction/NiceAction.types";
28
+ export * from "./NiceAction/NiceAction.types";
29
29
  export { NiceActionPrimed } from "./NiceAction/NiceActionPrimed";
30
30
  export { NiceActionResponse } from "./NiceAction/NiceActionResponse";
31
31
  export * from "./utils/isActionResponseJsonObject";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-code/action",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -32,8 +32,8 @@
32
32
  "build-types": "tsc --project tsconfig.build.json"
33
33
  },
34
34
  "dependencies": {
35
- "@nice-code/error": "0.1.2",
36
- "@nice-code/common-errors": "0.1.2",
35
+ "@nice-code/error": "0.1.3",
36
+ "@nice-code/common-errors": "0.1.3",
37
37
  "@standard-schema/spec": "^1.1.0",
38
38
  "http-status-codes": "^2.3.0",
39
39
  "nanoid": "^5.1.9",