Skip to content

Commit

Permalink
Codegen: semi
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjermakov committed Mar 17, 2024
1 parent f8d6656 commit 0e7f313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const jsString = (str: string): string => {

export const jsVariable = (name: string, emit?: string, pub = false): string => {
const assign = `let ${name}${emit !== undefined ? ` = ${emit}` : ''}`
return `${pub ? 'export ' : ''}${assign}`
return `${pub ? 'export ' : ''}${assign};`
}

export const indent = (str: string, level = 1): string => {
Expand Down

0 comments on commit 0e7f313

Please sign in to comment.