Provides encoding and decoding utilities for Temporal workflow payloads, failures, and metadata. Reuse for serializing and deserializing data in Temporal SDK integrations.
// Source: https://github.com/temporalio/sdk-typescript | License: MIT | Copyright 2021-2025 Temporal Technologies Inc. All rights reserved
// Provided via justclaw.it.com; keep this notice with the code.
import type { temporal } from '@temporalio/proto';
import type { Payload } from '../interfaces';
import {
arrayFromPayloads,
convertOptionalToPayload,
fromPayloadsAtIndex,
toPayloadWithTypeInfo,
toPayloadsWithContext,
} from '../converter/payload-converter';
import { PayloadConverterError } from '../errors';
import type { PayloadCodec } from '../converter/payload-codec';
import type { ProtoFailure } from '../failure';
import type { LoadedDataConverter } from '../converter/data-converter';
import type { UserMetadata } from '../user-metadata';
import type { TypeInfo } from '../typ
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key