diff --git a/packages/@vuepress/core/lib/plugin-api/constants.js b/packages/@vuepress/core/lib/plugin-api/constants.js index b7c1d66ace..e9bcb63591 100644 --- a/packages/@vuepress/core/lib/plugin-api/constants.js +++ b/packages/@vuepress/core/lib/plugin-api/constants.js @@ -9,12 +9,12 @@ const PLUGIN_OPTION_META_MAP = { // options CHAIN_WEBPACK: { name: 'chainWebpack', types: [Function] }, ENHANCE_DEV_SERVER: { name: 'enhanceDevServer', types: [Function] }, - ENHANCE_APP_FILES: { name: 'enhanceAppFiles', types: [Array, Function] }, + ENHANCE_APP_FILES: { name: 'enhanceAppFiles', types: [String, Object, Array, Function] }, OUT_FILES: { name: 'outFiles', types: [Object] }, EXTEND_PAGE_DATA: { name: 'extendPageData', types: [Function] }, EXTEND_MARKDOWN: { name: 'extendMarkdown', types: [Function] }, CHAIN_MARKDOWN: { name: 'chainMarkdown', types: [Function] }, - CLIENT_DYNAMIC_MODULES: { name: 'clientDynamicModules', types: [Function] }, + CLIENT_DYNAMIC_MODULES: { name: 'clientDynamicModules', types: [Object, Function] }, CLIENT_ROOT_MIXIN: { name: 'clientRootMixin', types: [String] }, ADDITIONAL_PAGES: { name: 'additionalPages', types: [Function, Array] }, GLOBAL_UI_COMPONENTS: { name: 'globalUIComponents', types: [String, Array] },