Skip to content

Commit

Permalink
fix: file ending
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Nov 4, 2024
1 parent b89b863 commit 715bc6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/mist.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ declare namespace JSX {
interface IntrinsicElements {
button: Mist_button
}
}
}

0 comments on commit 715bc6e

Please sign in to comment.