From 14e7e0f6a94a9309d16fb8d62467c95b3d001529 Mon Sep 17 00:00:00 2001 From: Caleb Stimpson <70288813+probeiuscorp@users.noreply.github.com> Date: Fri, 28 Jun 2024 00:37:55 +0000 Subject: [PATCH] docs: Describe `oneof=unions-value` output as Algebraic Data Type (#1065) 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 {