UNPKG

@depup/trpc__client

Version:

The tRPC client library (with updated dependencies)

16 lines (15 loc) • 273 B
export function inputWithTrackedEventId( input: unknown, lastEventId: string | undefined, ) { if (!lastEventId) { return input; } if (input != null && typeof input !== 'object') { return input; } return { ...(input ?? {}), lastEventId, }; }