File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,7 @@ public void run() {
7777 * }
7878 *
7979 * export namespace Person {
80- * export function isa(o: any): o is Person {
81- * return __isa(o, "Person");
82- * }
80+ * export const isa = (o: any): o is Person => __isa(o, "Person");
8381 * }
8482 * }</pre>
8583 */
@@ -138,10 +136,8 @@ private void renderNonErrorStructure() {
138136 * resourceType: string | undefined;
139137 * }
140138 *
141- * export namespace Person {
142- * export function isa(o: any): o is NoSuchResource {
143- * return __isa(o, "NoSuchResource");
144- * }
139+ * export namespace NoSuchResource {
140+ * export const isa = (o: any): o is NoSuchResource => __isa(o, "NoSuchResource");
145141 * }
146142 * }</pre>
147143 */
You can’t perform that action at this time.
0 commit comments