vuepress / vuepress-community

:bulb: Community supported ecosystem for VuePress
https://vuepress-community.netlify.app
MIT License
81 stars 62 forks source link

[Bug Report] vuepress-types #26

Closed Mister-Hope closed 4 years ago

Mister-Hope commented 4 years ago

https://v1.vuepress.vuejs.org/zh/plugin/option-api.html#define

As the docs shown above,

export interface PluginOptionAPI {
  ...
  define?: Record<string, string> | (() => Record<string, string>)
  ...
}

should be changed to

export interface PluginOptionAPI {
  ...
  define?: Record<string, any> | (() => Record<string, any>)
  ...
}

because I can write

{
 define: { aSimpleObject: { a: 1} }
}