Skip to content

Commit d1cc25d

Browse files
committed
address review feedbacks
1 parent b3c6e45 commit d1cc25d

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/TypeScriptIntegration.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,22 @@ default void writeAdditionalFiles(
162162

163163
/**
164164
* Write additional export statement to client root index.ts.
165-
* This is necessary when {@link TypeScriptIntegration#writeAdditionalFiles} is also implemented.
165+
* The files generated by {@link TypeScriptIntegration#writeAdditionalFiles}
166+
* can be exported with this method.
167+
*
168+
* <pre>
169+
* {@code
170+
* public final class MyIntegration implements TypeScriptIntegration {
171+
* public writeAdditionalExports(
172+
* TypeScriptSettings settings,
173+
* Model model,
174+
* SymbolProvider symbolProvider,
175+
* TypeScriptWriter writer
176+
* ) {
177+
* writer.write("export * from $S;", "./foo.ts");
178+
* }
179+
* }
180+
* }</pre>
166181
*
167182
* @param settings Settings used to generate.
168183
* @param model Model to generate from.

0 commit comments

Comments
 (0)