Skip to content

Commit b0306c4

Browse files
committed
style: use export type * as possible
1 parent 89420d9 commit b0306c4

File tree

14 files changed

+29
-29
lines changed

14 files changed

+29
-29
lines changed

packages/bundler-vite/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { viteBundler } from './viteBundler.js'
22

3-
export * from './types.js'
3+
export type * from './types.js'
44
export * from './viteBundler.js'
55
export default viteBundler

packages/bundler-webpack/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { webpackBundler } from './webpackBundler.js'
22

3-
export * from './types.js'
3+
export type * from './types.js'
44
export * from './webpackBundler.js'
55
export default webpackBundler
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from './createBuild.js'
2-
export * from './types.js'
2+
export type * from './types.js'

packages/cli/src/commands/dev/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ export * from './createDev.js'
22
export * from './handlePageAdd.js'
33
export * from './handlePageChange.js'
44
export * from './handlePageUnlink.js'
5-
export * from './types.js'
5+
export type * from './types.js'
66
export * from './watchPageFiles.js'
77
export * from './watchUserConfigFile.js'

packages/cli/src/config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ export * from './resolveCliAppConfig.js'
55
export * from './resolveUserConfigConventionalPath.js'
66
export * from './resolveUserConfigPath.js'
77
export * from './transformUserConfigToPlugin.js'
8-
export * from './types.js'
8+
export type * from './types.js'

packages/client/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ export * from './components/index.js'
22
export * from './composables/index.js'
33
export * from './router/index.js'
44
export * from './resolvers.js'
5-
export * from './types/index.js'
5+
export type * from './types/index.js'
66
export * from './utils/index.js'

packages/client/src/types/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export * from './clientConfig.js'
2-
export * from './clientData.js'
3-
export * from './createVueAppFunction.js'
4-
export * from './routes.js'
1+
export type * from './clientConfig.js'
2+
export type * from './clientData.js'
3+
export type * from './createVueAppFunction.js'
4+
export type * from './routes.js'

packages/core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export * from './app/index.js'
22
export * from './page/index.js'
33
export * from './pluginApi/index.js'
4-
export * from './types/index.js'
4+
export type * from './types/index.js'

packages/core/src/types/app/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from './app.js'
2-
export * from './options.js'
3-
export * from './utils.js'
1+
export type * from './app.js'
2+
export type * from './options.js'
3+
export type * from './utils.js'

packages/core/src/types/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ export type {
2828
SiteLocaleConfig,
2929
}
3030

31-
export * from './app/index.js'
32-
export * from './bundler.js'
33-
export * from './page.js'
34-
export * from './plugin.js'
35-
export * from './pluginApi/index.js'
36-
export * from './theme.js'
31+
export type * from './app/index.js'
32+
export type * from './bundler.js'
33+
export type * from './page.js'
34+
export type * from './plugin.js'
35+
export type * from './pluginApi/index.js'
36+
export type * from './theme.js'

0 commit comments

Comments
 (0)