fix(preset-classic): fix TS build issue (#5603)

This commit is contained in:
Sébastien Lorber 2021-09-22 11:15:39 +01:00 committed by GitHub
parent dc5ec324dc
commit b403356dbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,11 @@ export default function preset(
): Preset {
const {siteConfig} = context;
const {themeConfig} = siteConfig;
const {algolia, googleAnalytics, gtag} = themeConfig as ThemeConfig;
const {
algolia,
googleAnalytics,
gtag,
} = (themeConfig as unknown) as ThemeConfig;
const isProd = process.env.NODE_ENV === 'production';
const themes: PluginConfig[] = [];