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() {
77
77
* }
78
78
*
79
79
* 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");
83
81
* }
84
82
* }</pre>
85
83
*/
@@ -138,10 +136,8 @@ private void renderNonErrorStructure() {
138
136
* resourceType: string | undefined;
139
137
* }
140
138
*
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");
145
141
* }
146
142
* }</pre>
147
143
*/
You can’t perform that action at this time.
0 commit comments