UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

11 lines (10 loc) 277 B
import { expectUnion } from "@smithy/core/serde"; export const awsExpectUnion = (value) => { if (value == null) { return undefined; } if (typeof value === "object" && "__type" in value) { delete value.__type; } return expectUnion(value); };