From eacc18c993cefa2922c13826c1d0498a9eafc4d1 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Wed, 17 Aug 2022 17:36:00 +0530 Subject: [PATCH] fix(types): explicitly re-export to resolve ambiguities (#1193) --- types/index.d.ts | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 8fe4969a563f..b466f16f7bea 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,2 +1,35 @@ -export * from '../dist/node/index.js' -export * from '../dist/client/index.js' +export * from './shared.js' + +export { + Content, + EnhanceAppContext, + Route, + Router, + Theme, + VitePressData, + inBrowser, + useData, + useRoute, + useRouter, + withBase +} from '../dist/client/index.js' + +export { + MarkdownOptions, + MarkdownParsedData, + MarkdownRenderer, + RawConfigExports, + ServeOptions, + SiteConfig, + ThemeOptions, + UserConfig, + build, + createMarkdownRenderer, + createServer, + defineConfig, + defineConfigWithTheme, + resolveConfig, + resolveSiteData, + resolveSiteDataByRoute, + serve +} from '../dist/node/index.js'