Skip to content

Commit 9c21651

Browse files
committed
chore: fix docs:build
1 parent 4e549e1 commit 9c21651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/macros/src/volar/global-types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ export function getGlobalTypes(
1313
`declare const ${alias}: { <T>(...args: ${HELPER_PREFIX}StyleArgs): T; scss: <T>(...args: ${HELPER_PREFIX}StyleArgs)=> T; sass: <T>(...args: ${HELPER_PREFIX}StyleArgs)=> T; stylus: <T>(...args: ${HELPER_PREFIX}StyleArgs)=> T; less: <T>(...args: ${HELPER_PREFIX}StyleArgs)=> T; postcss: <T>(...args: ${HELPER_PREFIX}StyleArgs)=> T };`,
1414
)
1515
.join('\n')
16-
defineStyle += `type ${HELPER_PREFIX}StyleArgs = [style: string, options?: { scoped?: boolean }];`
16+
defineStyle += `\ntype ${HELPER_PREFIX}StyleArgs = [style: string, options?: { scoped?: boolean }];`
1717
}
1818
if (!rootMap.size) {
19-
return defineStyle
19+
return `\n${defineStyle}`
2020
}
2121

2222
const defineSlots = options.defineSlots.alias

0 commit comments

Comments
 (0)