UNPKG

@kellanjs/actioncraft

Version:

Fluent, type-safe builder for Next.js server actions.

21 lines 714 B
// ============================================================================ // CONSTANTS // ============================================================================ /** * Map of error identifiers that should never be surfaced to clients. */ export const INTERNAL_ERROR_TYPES = { IMPLICIT_RETURN: "IMPLICIT_RETURN", INTERNAL_LOGIC: "INTERNAL_LOGIC", OUTPUT_VALIDATION: "OUTPUT_VALIDATION", }; /** * Map of error identifiers that can be surfaced to clients. */ export const EXTERNAL_ERROR_TYPES = { INITIAL_STATE: "INITIAL_STATE", UNHANDLED: "UNHANDLED", INPUT_VALIDATION: "INPUT_VALIDATION", BIND_ARGS_VALIDATION: "BIND_ARGS_VALIDATION", }; //# sourceMappingURL=errors.js.map