You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, I am peeking into SDK's src/handlers/next/saleor-webhooks/sync-webhook-response-builder.ts to see what type should I expect in the ctx.buildResponse function for the TRANSACTION_INITIALIZE_SESSION event:
Problem
Version: 0.43 / 0.44
In my Next.js app, I define a sync webhook using the
SaleorSyncWebhook
Next handler:Then, I am peeking into SDK's
src/handlers/next/saleor-webhooks/sync-webhook-response-builder.ts
to see what type should I expect in thectx.buildResponse
function for theTRANSACTION_INITIALIZE_SESSION
event:And here is the proposed type I see in my IDE:
So, I see:
CHECKOUT_FILTER_SHIPPING_METHODS
andCHECKOUT_CALCULATE_TAXES
TRANSACTION_INITIALIZE_SESSION
are optionalWhat I tried but didn't work
SyncWebhookResponsesMap
type so it doesn't self-reference in:because, as far as I can tell, those two objects are "leaking" into the type that I see in
ctx.buildResponse
.The text was updated successfully, but these errors were encountered: