diff --git a/src/printer.ts b/src/printer.ts index f9a6bee..dc0ffc7 100644 --- a/src/printer.ts +++ b/src/printer.ts @@ -41,7 +41,7 @@ export function print(interfaceNodes, inputKind: ts.SyntaxKind, options: JsonTsO }); const ns = ts.createModuleDeclaration( undefined, - [ts.createToken(ts.SyntaxKind.DeclareKeyword)], + [ts.createToken(ts.SyntaxKind.ExportKeyword), ts.createToken(ts.SyntaxKind.DeclareKeyword)], ts.createIdentifier(options.namespace), ts.createModuleBlock(interfaceNodes), ts.NodeFlags.Namespace