Skip to content

Commit

Permalink
Rollback preview.ts templates
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Feb 23, 2023
1 parent 7516e92 commit b7cc2d3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions code/lib/cli/src/generators/configure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export async function configurePreview(options: ConfigurePreviewOptions) {
}

const prefix = [
isTypescript && rendererPackage ? `import type { Preview } from '${rendererPackage}'` : '',
// isTypescript && rendererPackage ? `import type { Preview } from '${rendererPackage}'` : '',
frameworkPrefix,
]
.filter(Boolean)
Expand All @@ -136,10 +136,8 @@ export async function configurePreview(options: ConfigurePreviewOptions) {
const preview = dedent`
${prefix}${prefix.length > 0 ? '\n' : ''}
${
!isTypescript && rendererPackage
? `/** @type { import('${rendererPackage}').Preview } */\n`
: ''
}const preview${isTypescript ? ': Preview' : ''} = {
rendererPackage ? `/** @type { import('${rendererPackage}').Preview } */\n` : ''
}const preview = {
parameters: {
backgrounds: {
default: 'light',
Expand Down

0 comments on commit b7cc2d3

Please sign in to comment.