From 62e5a78b2de103acb0bcbd8e1744063d458fa2f1 Mon Sep 17 00:00:00 2001 From: Caleb Stimpson <70288813+probeiuscorp@users.noreply.github.com> Date: Thu, 27 Jun 2024 22:29:44 +0000 Subject: [PATCH] docs: Describe `oneof=unions-value` output as Algebraic Data Type instead The discriminated union output of `oneof=unions` and `oneof=unions-value` is incorrectly described as an Abstract Data Type. Describe as Algebraic Data Type instead. --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 1dc9d6762..b866a8b63 100644 --- a/README.markdown +++ b/README.markdown @@ -772,7 +772,7 @@ Will generate a `Foo` type with two fields: `field_a: string | undefined;` and ` With this output, you'll have to check both `if object.field_a` and `if object.field_b`, and if you set one, you'll have to remember to unset the other. -Instead, we recommend using the `oneof=unions-value` option, which will change the output to be an Abstract Data Type/ADT like: +Instead, we recommend using the `oneof=unions-value` option, which will change the output to be an Algebraic Data Type/ADT like: ```typescript interface YourMessage {