Skip to content

Commit

Permalink
fix(render): fix renderDefaultLocale
Browse files Browse the repository at this point in the history
  • Loading branch information
zernie committed Mar 26, 2020
1 parent 7ba1433 commit 44a447c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderers/contentful/renderDefaultLocale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export default function renderDefaultLocale(locales: Locale[]): string {
throw new Error("Could not find a default locale in Contentful.")
}

return `type CONTENTFUL_DEFAULT_LOCALE_CODE = '${defaultLocale.code}';`
return `export type CONTENTFUL_DEFAULT_LOCALE_CODE = '${defaultLocale.code}';`
}
2 changes: 1 addition & 1 deletion test/renderers/typescript/renderUnion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import format from "../../support/format"
describe("renderUnion()", () => {
it("renders a union", () => {
expect(format(renderUnion("name", ["1", "2", "3"]))).toMatchInlineSnapshot(
`"type name = 1 | 2 | 3;"`,
`"export type name = 1 | 2 | 3;"`,
)
})
})
Expand Down

0 comments on commit 44a447c

Please sign in to comment.