UNPKG

arvo-core

Version:

The core Arvo package which provides application tier core primitives and contract system for building production-grade event-driven application. Provides ArvoEvent (CloudEvents-compliant), ArvoContract for type-safe service interfaces, event factories, O

19 lines (18 loc) 618 B
import { z } from 'zod'; import type { CreateArvoEvent } from './types'; export declare const ArvoEventIdObjectSchema: z.ZodObject<{ uuid: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; uuid: string; }, { value: string; uuid: string; }>; export type ArvoEventIdObject = z.infer<typeof ArvoEventIdObjectSchema>; export declare const createArvoEventId: (id?: CreateArvoEvent<Record<string, unknown>, string>["id"]) => string; export declare const parseArvoEventId: (id: string) => readonly [{ value: string; uuid: string; }, null] | readonly [string, Error];