From 705deff992e8fd270da94fef7755908aadc11c2f Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Mon, 27 Apr 2020 21:28:17 +0000 Subject: [PATCH] Update documentation for changing isa method to arrow function --- .../smithy/typescript/codegen/StructureGenerator.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/StructureGenerator.java b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/StructureGenerator.java index d6ba6f1ade2..1f226c252e2 100644 --- a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/StructureGenerator.java +++ b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/StructureGenerator.java @@ -77,9 +77,7 @@ public void run() { * } * * export namespace Person { - * export function isa(o: any): o is Person { - * return __isa(o, "Person"); - * } + * export const isa = (o: any): o is Person => __isa(o, "Person"); * } * } */ @@ -138,10 +136,8 @@ private void renderNonErrorStructure() { * resourceType: string | undefined; * } * - * export namespace Person { - * export function isa(o: any): o is NoSuchResource { - * return __isa(o, "NoSuchResource"); - * } + * export namespace NoSuchResource { + * export const isa = (o: any): o is NoSuchResource => __isa(o, "NoSuchResource"); * } * } */