Files
github-actions[bot] 02c8e4d9d4 Upgrade workspace to TypeScript 6 (#2700) (#2706)
* Upgrade workspace to TypeScript 6

* Restore Nest baseUrl for SWC builds

* Use empty changeset for TS6 upgrade

* Remove TS6 changeset

Signed-off-by: Nathan Colosimo <110621881+NathanColosimo@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nathan Colosimo <110621881+NathanColosimo@users.noreply.github.com>
2026-06-30 10:33:13 -07:00
..
2026-06-10 17:24:42 -07:00
2026-06-10 17:24:42 -07:00

@workflow/serde

Serialization symbols for custom class serialization in Workflow SDK.

Usage

import { WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@workflow/serde';

class MyClass {
  constructor(public value: string) {}

  static [WORKFLOW_SERIALIZE](instance: MyClass) {
    return { value: instance.value };
  }

  static [WORKFLOW_DESERIALIZE](data: { value: string }) {
    return new MyClass(data.value);
  }
}

License

Apache-2.0