Skip to content

Commit

Permalink
fix: export type { VikeConfig }
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Mar 1, 2025
1 parent 568d03d commit e2bc010
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vike/node/plugin/plugins/commonConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export { commonConfig }
export { getVikeConfigPublic }
export type { VikeConfigPublic }

import { type InlineConfig, mergeConfig, type Plugin, type ResolvedConfig, type UserConfig } from 'vite'
import {
Expand Down Expand Up @@ -40,6 +41,7 @@ declare module 'vite' {
}
}

// TODO/now: rename
type VikeConfigPublic = {
config: VikeConfigObject['global']['config']
pages: VikeConfigObject['pages']
Expand Down
2 changes: 2 additions & 0 deletions vike/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export type {
} from '../node/plugin/plugins/importUserCode/v1-design/getVikeConfig/configDefinitionsBuiltIn.js'
export type { ConfigEntries } from '../shared/page-configs/getPageConfigUserFriendly.js'

export type { VikeConfigPublic as VikeConfig } from '../node/plugin/plugins/commonConfig.js'

export type { UrlPublic as Url } from '../utils/parseUrl.js'

export type { InjectFilterEntry } from '../node/runtime/html/injectAssets/getHtmlTags.js'
Expand Down

0 comments on commit e2bc010

Please sign in to comment.