diff --git a/src/index.ts b/src/index.ts index cca23f6..0d0131b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -79,7 +79,7 @@ function render(parsed: Parsed): string { jsxDeclaration += ' }\n}\n' // Return the full interface definitions and JSX declaration - return interfaceDefinitions.trim() + '\n\n' + jsxDeclaration.trim() + return interfaceDefinitions + jsxDeclaration } // Turn button[data-component='foo'] into a key that will be used for the interface name diff --git a/test/mist.d.ts b/test/mist.d.ts index ed0eb93..699d8e6 100644 --- a/test/mist.d.ts +++ b/test/mist.d.ts @@ -6,4 +6,4 @@ declare namespace JSX { interface IntrinsicElements { button: Mist_button } -} \ No newline at end of file +}